Spaces:
Runtime error
Runtime error
epochs-demos
commited on
Commit
·
5d7299f
1
Parent(s):
25cfecc
Update app.py
Browse files
app.py
CHANGED
@@ -146,6 +146,7 @@ class PredictorBackend:
|
|
146 |
|
147 |
|
148 |
predictor = PredictorBackend()
|
|
|
149 |
# Read the image file and encode it as base64
|
150 |
with open("./1001epochs.png", "rb") as f:
|
151 |
image_data = f.read()
|
@@ -162,11 +163,13 @@ title = f"""
|
|
162 |
|
163 |
description = f"""
|
164 |
<div style="display: flex; align-items: center; justify-content: center; flex-direction: column;">
|
165 |
-
<
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
|
|
|
|
170 |
Discover your perfect apparel effortlessly. Simply describe what you're looking for!
|
171 |
</p>
|
172 |
</div>
|
@@ -183,6 +186,7 @@ frontend = gr.Interface(
|
|
183 |
flagging_options=["incorrect", "offensive", "other"], # what options do users have for feedback?
|
184 |
)
|
185 |
frontend.launch()
|
|
|
186 |
# # Read the image file and encode it as base64
|
187 |
# with open("./1001epochs.png", "rb") as f:
|
188 |
# image_data = f.read()
|
|
|
146 |
|
147 |
|
148 |
predictor = PredictorBackend()
|
149 |
+
|
150 |
# Read the image file and encode it as base64
|
151 |
with open("./1001epochs.png", "rb") as f:
|
152 |
image_data = f.read()
|
|
|
163 |
|
164 |
description = f"""
|
165 |
<div style="display: flex; align-items: center; justify-content: center; flex-direction: column;">
|
166 |
+
<div style="display: flex; align-items: center; margin-bottom: 10px;">
|
167 |
+
<img src='data:image/jpeg;base64,{image_base64}' width='50' height='50' style="margin-right: 5px;"/>
|
168 |
+
<p style="font-size: small; color: #555;">
|
169 |
+
Disclaimer: This web app is for demonstration purposes only and not intended for commercial use. Contact: [email protected] for full solution.
|
170 |
+
</p>
|
171 |
+
</div>
|
172 |
+
<p style="font-size: 16px; color: #333; text-align: center;">
|
173 |
Discover your perfect apparel effortlessly. Simply describe what you're looking for!
|
174 |
</p>
|
175 |
</div>
|
|
|
186 |
flagging_options=["incorrect", "offensive", "other"], # what options do users have for feedback?
|
187 |
)
|
188 |
frontend.launch()
|
189 |
+
|
190 |
# # Read the image file and encode it as base64
|
191 |
# with open("./1001epochs.png", "rb") as f:
|
192 |
# image_data = f.read()
|