Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
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/)
|