epochs-demos commited on
Commit
09ee83b
·
1 Parent(s): 9d57bff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -178,15 +178,8 @@ def make_frontend(
178
  </h3>
179
  </div>
180
  """
181
- # Build a customized browser interface to a Python function
182
- disclaimer = """
183
- <div style="display: flex; align-items: center; justify-content: center;">
184
- <img src='temp.jpg' width='50' height='50' style="margin-right: 10px;"/>
185
- <p style="font-size: small; color: gray;">
186
- Disclaimer: The search results are based on embeddings and may not be always accurate.
187
- </p>
188
- </div>
189
- """
190
 
191
  frontend = gr.Interface(
192
  fn=fn,
@@ -194,7 +187,7 @@ def make_frontend(
194
  inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
195
  title="Fashion Aggregator",
196
  thumbnail=LOGO,
197
- description=gr.HTML(description),
198
  article = "Disclaimer: The search results are based on embeddings and may not be always accurate.",
199
  cache_examples=False,
200
  allow_flagging=allow_flagging,
 
178
  </h3>
179
  </div>
180
  """
181
+
182
+ description = f"{description}"
 
 
 
 
 
 
 
183
 
184
  frontend = gr.Interface(
185
  fn=fn,
 
187
  inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
188
  title="Fashion Aggregator",
189
  thumbnail=LOGO,
190
+ description=description,
191
  article = "Disclaimer: The search results are based on embeddings and may not be always accurate.",
192
  cache_examples=False,
193
  allow_flagging=allow_flagging,