tonyassi commited on
Commit
34e47b3
β€’
1 Parent(s): 2d924e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -5,11 +5,12 @@ def segment(img, clothes):
5
  return segment_clothing(img, clothes)
6
 
7
  iface = gr.Interface(fn=segment,
8
- inputs=[gr.Image(type='pil'),
9
  gr.Dropdown(choices=["Hat", "Upper-clothes", "Skirt", "Pants", "Dress", "Belt", "Left-shoe", "Right-shoe", "Scarf"],
10
  value=["Hat", "Upper-clothes", "Skirt", "Pants", "Dress", "Belt", "Left-shoe", "Right-shoe", "Scarf"],
11
- multiselect=True)],
12
- outputs=gr.Image(),
 
13
  title='Clothing Segmentation',
14
  description="""
15
  by [Tony Assi](https://www.tonyassi.com/)
 
5
  return segment_clothing(img, clothes)
6
 
7
  iface = gr.Interface(fn=segment,
8
+ inputs=[gr.Image(type='pil', label='Image'),
9
  gr.Dropdown(choices=["Hat", "Upper-clothes", "Skirt", "Pants", "Dress", "Belt", "Left-shoe", "Right-shoe", "Scarf"],
10
  value=["Hat", "Upper-clothes", "Skirt", "Pants", "Dress", "Belt", "Left-shoe", "Right-shoe", "Scarf"],
11
+ multiselect=True,
12
+ label='Clothing')],
13
+ outputs=gr.Image(label='Clothing Segmentation'),
14
  title='Clothing Segmentation',
15
  description="""
16
  by [Tony Assi](https://www.tonyassi.com/)