Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
|
|
|
|
|
|
|
|
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()
|