ryanj commited on
Commit
d3ae269
β€’
1 Parent(s): 937d011

[fix] remove bad brand urls

Browse files
Files changed (1) hide show
  1. app.py +16 -8
app.py CHANGED
@@ -341,14 +341,22 @@ with gr.Blocks() as demo:
341
  with gr.TabItem('Find the Literal Optimal Clothes', id=0):
342
  with gr.Box():
343
  default_clothes = """black dress pants,
344
- blue dress shirt,
345
- blue jacket,
346
- blue jeans,
347
  blue shirt,
348
- brown boots,
349
- gray sweater,
350
- white dress shirt,
351
- white sneakers"""
 
 
 
 
 
 
 
 
 
 
 
352
 
353
  with gr.Row():
354
  with gr.Column():
@@ -395,7 +403,7 @@ You put in clothes you own to find outfit ideas!
395
  with gr.Row():
396
  with gr.Column():
397
  bad_urls = ['dynamite', 'abercrombie women']
398
- styles = gr.Radio(list(style_annotations_dict.keys()), value="uniqlo", label='Styles')
399
  start_from = gr.Slider(0, 100, label='Start from', value=0, step=10)
400
  with gr.Group():
401
  text_filter = gr.Textbox(value='white t shirt, jeans', label='Outfit includes')
 
341
  with gr.TabItem('Find the Literal Optimal Clothes', id=0):
342
  with gr.Box():
343
  default_clothes = """black dress pants,
 
 
 
344
  blue shirt,
345
+ white sweater,
346
+ black sweater,
347
+ white t shirt,
348
+ black t shirt,
349
+ black shorts,
350
+ white shirt,
351
+ grey hoodie,
352
+ black t shirt,
353
+ gray sweater,
354
+ black jacket,
355
+ black sneakers,
356
+ white sneakers,
357
+ blue jeans,
358
+ black baseball hat,
359
+ black jeans"""
360
 
361
  with gr.Row():
362
  with gr.Column():
 
403
  with gr.Row():
404
  with gr.Column():
405
  bad_urls = ['dynamite', 'abercrombie women']
406
+ styles = gr.Radio([ k for k in style_annotations_dict.keys() if k not in bad_urls ], value="uniqlo", label='Styles')
407
  start_from = gr.Slider(0, 100, label='Start from', value=0, step=10)
408
  with gr.Group():
409
  text_filter = gr.Textbox(value='white t shirt, jeans', label='Outfit includes')