tonyassi commited on
Commit
bddf3b8
1 Parent(s): bf4e273

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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()