Spaces:
Runtime error
Runtime error
Commit
·
44459a0
1
Parent(s):
30c2986
Update app.py
Browse files
app.py
CHANGED
@@ -129,24 +129,24 @@ def make_frontend(fn: Callable[[Image], str], flagging: bool = False, gantry: bo
|
|
129 |
output_section = gr.Gallery(label="Relevant Items", show_labels=True, label_position="below")
|
130 |
|
131 |
# Define Interface layout with Gradio's Row and Column
|
132 |
-
interface_layout =
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
),
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
input_section,
|
142 |
),
|
143 |
-
|
144 |
output_section,
|
145 |
),
|
146 |
)
|
147 |
),
|
148 |
-
|
149 |
-
|
150 |
),
|
151 |
)
|
152 |
|
|
|
129 |
output_section = gr.Gallery(label="Relevant Items", show_labels=True, label_position="below")
|
130 |
|
131 |
# Define Interface layout with Gradio's Row and Column
|
132 |
+
interface_layout = gr.ui.Row(
|
133 |
+
gr.ui.Column(
|
134 |
+
gr.ui.Textbox("Fashion Aggregator", label="Title"),
|
135 |
+
gr.ui.Image(LOGO, label="Logo"),
|
136 |
+
gr.ui.Textbox("Discover your perfect apparel effortlessly. Simply describe what you're looking for!", label="Description"),
|
137 |
),
|
138 |
+
gr.ui.Column(
|
139 |
+
gr.ui.Section(
|
140 |
+
gr.ui.Center(
|
141 |
input_section,
|
142 |
),
|
143 |
+
gr.ui.Center(
|
144 |
output_section,
|
145 |
),
|
146 |
)
|
147 |
),
|
148 |
+
gr.ui.Column(
|
149 |
+
gr.ui.Textbox("Disclaimer: The search results are based on embeddings and may not be always accurate.", label="Disclaimer"),
|
150 |
),
|
151 |
)
|
152 |
|