epochs-demos commited on
Commit
829b248
·
1 Parent(s): b422ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -11
app.py CHANGED
@@ -147,20 +147,41 @@ def make_frontend(
147
  </h1>
148
  """
149
 
 
 
 
 
 
 
 
 
 
150
  description = f"""
151
- <div style="text-align: center; font-size: 18px; color: blue;">
152
- Discover your perfect apparel effortlessly. Simply describe what you're looking for!
 
 
 
 
 
 
153
  </div>
154
  """
155
 
156
- disclaimer = f"""
157
- <div style="display: flex; align-items: center; justify-content: center;">
158
- <img src='data:image/jpeg;base64,{image_base64}' width='50' height='50' style="margin-right: 10px;"/>
159
- <p style="font-size: small; color: gray;">
160
- This web app is for demonstration purposes only and not intended for commercial use. Contact: [email protected] for full solution.
161
- </p>
162
- </div>
163
- """
 
 
 
 
 
 
164
 
165
  frontend = gr.Interface(
166
  fn=fn,
@@ -169,7 +190,6 @@ def make_frontend(
169
  title=title,
170
  thumbnail=LOGO,
171
  description=description,
172
- article = disclaimer,
173
  cache_examples=False,
174
  allow_flagging=allow_flagging,
175
  flagging_options=["incorrect", "offensive", "other"],
 
147
  </h1>
148
  """
149
 
150
+ disclaimer = f"""
151
+ <div style="display: flex; align-items: center; justify-content: center;">
152
+ <img src='data:image/jpeg;base64,{image_base64}' width='50' height='50' style="margin-right: 10px;"/>
153
+ <p style="font-size: small; color: gray;">
154
+ Disclaimer: This web app is for demonstration purposes only and not intended for commercial use. Contact: [email protected] for full solution.
155
+ </p>
156
+ </div>
157
+ """
158
+
159
  description = f"""
160
+ <div style="display: flex; align-items: center; justify-content: center; flex-direction: column;">
161
+ <img src='data:image/jpeg;base64,{image_base64}' width='50' height='50' style="margin-right: 10px;"/>
162
+ <p style="font-size: small; color: gray; margin-top: 10px;">
163
+ Disclaimer: The search results are based on embeddings and may not always be accurate.
164
+ </p>
165
+ <p style="font-size: 18px; color: blue; margin-top: 10px; text-align: center;">
166
+ Discover your perfect apparel effortlessly. Simply describe what you're looking for!
167
+ </p>
168
  </div>
169
  """
170
 
171
+ # description = f"""
172
+ # <div style="text-align: center; font-size: 18px; color: blue;">
173
+ # Discover your perfect apparel effortlessly. Simply describe what you're looking for!
174
+ # </div>
175
+ # """
176
+
177
+ # disclaimer = f"""
178
+ # <div style="display: flex; align-items: center; justify-content: center;">
179
+ # <img src='data:image/jpeg;base64,{image_base64}' width='50' height='50' style="margin-right: 10px;"/>
180
+ # <p style="font-size: small; color: gray;">
181
+ # This web app is for demonstration purposes only and not intended for commercial use. Contact: [email protected] for full solution.
182
+ # </p>
183
+ # </div>
184
+ # """
185
 
186
  frontend = gr.Interface(
187
  fn=fn,
 
190
  title=title,
191
  thumbnail=LOGO,
192
  description=description,
 
193
  cache_examples=False,
194
  allow_flagging=allow_flagging,
195
  flagging_options=["incorrect", "offensive", "other"],