Spaces:
Runtime error
Runtime error
Commit
·
ed3424d
1
Parent(s):
b6bf468
Update app.py
Browse files
app.py
CHANGED
@@ -135,13 +135,13 @@ def main(args):
|
|
135 |
# </div>
|
136 |
# """
|
137 |
|
138 |
-
#
|
139 |
-
#
|
140 |
-
#
|
141 |
-
#
|
142 |
-
#
|
143 |
-
#
|
144 |
-
#
|
145 |
|
146 |
|
147 |
# with gr.Blocks(css="""#col_container {width: 800px; margin-left: auto; margin-right: auto;}""") as frontend:
|
@@ -173,6 +173,15 @@ def make_frontend(
|
|
173 |
allow_flagging = "never"
|
174 |
|
175 |
# Build a customized browser interface to a Python function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
frontend = gr.Interface(
|
177 |
fn=fn,
|
178 |
outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
|
@@ -180,9 +189,11 @@ def make_frontend(
|
|
180 |
title="Fashion Aggregator",
|
181 |
thumbnail=LOGO,
|
182 |
description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
|
|
|
183 |
cache_examples=False,
|
184 |
allow_flagging=allow_flagging,
|
185 |
flagging_options=["incorrect", "offensive", "other"],
|
|
|
186 |
)
|
187 |
|
188 |
return frontend
|
|
|
135 |
# </div>
|
136 |
# """
|
137 |
|
138 |
+
# disclaimer = disclaimer = """
|
139 |
+
# <div align="center">
|
140 |
+
# <p style="font-size: small; color: gray;">
|
141 |
+
# Disclaimer: The search results are based on embeddings and may not be always accurate.
|
142 |
+
# </p>
|
143 |
+
# </div>
|
144 |
+
# """
|
145 |
|
146 |
|
147 |
# with gr.Blocks(css="""#col_container {width: 800px; margin-left: auto; margin-right: auto;}""") as frontend:
|
|
|
173 |
allow_flagging = "never"
|
174 |
|
175 |
# Build a customized browser interface to a Python function
|
176 |
+
disclaimer = """
|
177 |
+
<div style="display: flex; align-items: center; justify-content: center;">
|
178 |
+
<img src='temp.jpg' width='50' height='50' style="margin-right: 10px;"/>
|
179 |
+
<p style="font-size: small; color: gray;">
|
180 |
+
Disclaimer: The search results are based on embeddings and may not be always accurate.
|
181 |
+
</p>
|
182 |
+
</div>
|
183 |
+
"""
|
184 |
+
|
185 |
frontend = gr.Interface(
|
186 |
fn=fn,
|
187 |
outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
|
|
|
189 |
title="Fashion Aggregator",
|
190 |
thumbnail=LOGO,
|
191 |
description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
|
192 |
+
article = disclaimer,
|
193 |
cache_examples=False,
|
194 |
allow_flagging=allow_flagging,
|
195 |
flagging_options=["incorrect", "offensive", "other"],
|
196 |
+
theme=gr.themes.Monochrome()
|
197 |
)
|
198 |
|
199 |
return frontend
|