epochs-demos commited on
Commit
ff30fb8
·
1 Parent(s): 1e57222

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -29
app.py CHANGED
@@ -141,37 +141,22 @@ def make_frontend(
141
  flagging_options=["incorrect", "offensive", "other"],
142
  )
143
 
144
- # Customize the HTML template to enhance the design and layout
145
- frontend.template = "gradio/custom.html"
 
 
 
 
 
 
 
 
 
 
 
 
146
 
147
  return frontend
148
-
149
- # # Build a customized browser interface to a Python function
150
- # frontend = gr.Interface(
151
- # fn=fn,
152
- # outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
153
- # inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
154
- # title="Fashion Aggregator", # Title
155
- # thumbnail="./1001epochs.png", # Company logo image
156
- # description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
157
- # cache_examples=False,
158
- # allow_flagging=allow_flagging,
159
- # flagging_options=["incorrect", "offensive", "other"],
160
- # )
161
-
162
- # # Apply custom CSS styles to enhance the design and layout
163
- # frontend.styles(
164
- # # Modify the styles according to your preferences
165
- # title="color: #333333; font-size: 28px; font-weight: bold; margin-bottom: 10px;",
166
- # description="color: #666666; font-size: 16px; margin-bottom: 20px;",
167
- # input="padding: 10px; border-radius: 5px; border: 1px solid #dddddd; font-size: 16px; width: 80%;",
168
- # output_gallery="margin-top: 20px;",
169
- # output_image="border-radius: 10px; box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);",
170
- # flag_button="background-color: #ff5555;",
171
- # flag_options="color: #333333;",
172
- # )
173
-
174
- # return frontend
175
 
176
 
177
  class PredictorBackend:
 
141
  flagging_options=["incorrect", "offensive", "other"],
142
  )
143
 
144
+ # Apply custom CSS styles to enhance the design and layout
145
+ frontend.styles(
146
+ # Modify the styles according to your preferences
147
+ title="color: #333333; font-size: 28px; font-weight: bold; margin-bottom: 10px; text-align: center;",
148
+ description="color: #666666; font-size: 16px; margin-bottom: 20px; text-align: center;",
149
+ input="padding: 10px; border-radius: 5px; border: 1px solid #dddddd; font-size: 16px; width: 80%; margin: 0 auto;",
150
+ output_gallery="margin-top: 20px;",
151
+ output_image="border-radius: 10px; box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);",
152
+ flag_button="background-color: #ff5555;",
153
+ flag_options="color: #333333;",
154
+ )
155
+
156
+ # # Customize the HTML template to enhance the design and layout
157
+ # frontend.template = "gradio/custom.html"
158
 
159
  return frontend
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
 
161
 
162
  class PredictorBackend: