tonyassi commited on
Commit
88157ff
1 Parent(s): 8682ae7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import gradio as gr
2
  from SegCloth import segment_clothing
3
 
4
- def segment(img):
5
- return segment_clothing(img)
6
 
7
- iface = gr.Interface(fn=segment, inputs=gr.Image(type='pil'), outputs=gr.Image())
 
 
 
 
8
  iface.launch()
 
1
  import gradio as gr
2
  from SegCloth import segment_clothing
3
 
4
+ 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
+ multiselect=True)],
11
+ outputs=gr.Image())
12
  iface.launch()