epochs-demos commited on
Commit
2280c36
·
1 Parent(s): 829b248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -22
app.py CHANGED
@@ -146,12 +146,12 @@ def make_frontend(
146
  Fashion Aggregator
147
  </h1>
148
  """
149
-
150
  disclaimer = f"""
151
  <div style="display: flex; align-items: center; justify-content: center;">
152
  <img src='data:image/jpeg;base64,{image_base64}' width='50' height='50' style="margin-right: 10px;"/>
153
  <p style="font-size: small; color: gray;">
154
- Disclaimer: This web app is for demonstration purposes only and not intended for commercial use. Contact: [email protected] for full solution.
155
  </p>
156
  </div>
157
  """
@@ -168,31 +168,12 @@ def make_frontend(
168
  </div>
169
  """
170
 
171
- # description = f"""
172
- # <div style="text-align: center; font-size: 18px; color: blue;">
173
- # Discover your perfect apparel effortlessly. Simply describe what you're looking for!
174
- # </div>
175
- # """
176
-
177
- # disclaimer = f"""
178
- # <div style="display: flex; align-items: center; justify-content: center;">
179
- # <img src='data:image/jpeg;base64,{image_base64}' width='50' height='50' style="margin-right: 10px;"/>
180
- # <p style="font-size: small; color: gray;">
181
- # This web app is for demonstration purposes only and not intended for commercial use. Contact: [email protected] for full solution.
182
- # </p>
183
- # </div>
184
- # """
185
-
186
  frontend = gr.Interface(
187
  fn=fn,
188
- outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
189
  inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
 
190
  title=title,
191
- thumbnail=LOGO,
192
  description=description,
193
- cache_examples=False,
194
- allow_flagging=allow_flagging,
195
- flagging_options=["incorrect", "offensive", "other"],
196
  )
197
 
198
  return frontend
 
146
  Fashion Aggregator
147
  </h1>
148
  """
149
+
150
  disclaimer = f"""
151
  <div style="display: flex; align-items: center; justify-content: center;">
152
  <img src='data:image/jpeg;base64,{image_base64}' width='50' height='50' style="margin-right: 10px;"/>
153
  <p style="font-size: small; color: gray;">
154
+ Disclaimer: This web app is for demonstration purposes only and not intended for commercial use. Contact: [email protected] for full solution.
155
  </p>
156
  </div>
157
  """
 
168
  </div>
169
  """
170
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  frontend = gr.Interface(
172
  fn=fn,
 
173
  inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
174
+ outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
175
  title=title,
 
176
  description=description,
 
 
 
177
  )
178
 
179
  return frontend