Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|