Spaces:
Runtime error
Runtime error
Commit
·
e6ed859
1
Parent(s):
fa73499
Update app.py
Browse files
app.py
CHANGED
@@ -131,12 +131,12 @@ def make_frontend(
|
|
131 |
# build a basic browser interface to a Python function
|
132 |
frontend = gr.Interface(
|
133 |
fn=fn, # which Python function are we interacting with?
|
134 |
-
outputs=gr.Gallery(label="Relevant Items"),
|
135 |
# what input widgets does it need? we configure an image widget
|
136 |
-
inputs=gr.components.Textbox(label="Item Description"),
|
137 |
-
title="
|
138 |
-
thumbnail=
|
139 |
-
description=
|
140 |
cache_examples=False, # should we cache those inputs for faster inference? slows down start
|
141 |
allow_flagging=allow_flagging, # should we show users the option to "flag" outputs?
|
142 |
flagging_options=["incorrect", "offensive", "other"], # what options do users have for feedback?
|
|
|
131 |
# build a basic browser interface to a Python function
|
132 |
frontend = gr.Interface(
|
133 |
fn=fn, # which Python function are we interacting with?
|
134 |
+
outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
|
135 |
# what input widgets does it need? we configure an image widget
|
136 |
+
inputs=gr.components.Textbox(label="Item Description", placeholder="Enter item description here"),
|
137 |
+
title="Fashion Aggregator", # what should we display at the top of the page?
|
138 |
+
thumbnail="1001epochs.png", # what should we display when the link is shared, e.g. on social media?
|
139 |
+
description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!", # what should we display just above the interface?
|
140 |
cache_examples=False, # should we cache those inputs for faster inference? slows down start
|
141 |
allow_flagging=allow_flagging, # should we show users the option to "flag" outputs?
|
142 |
flagging_options=["incorrect", "offensive", "other"], # what options do users have for feedback?
|