biennh commited on
Commit
f3beccb
1 Parent(s): ceb3f61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -10,6 +10,9 @@ def segment(input_img):
10
  return mask_image
11
 
12
 
13
- demo = gr.Interface(segment, gr.Image(shape=(400, 600)), "image")
 
 
 
14
  if __name__ == "__main__":
15
  demo.launch()
 
10
  return mask_image
11
 
12
 
13
+ demo = gr.Interface(fn=segment,
14
+ inputs=gr.Image(shape=(400, 600)),
15
+ outputs=['image'],
16
+ allow_flagging='never')
17
  if __name__ == "__main__":
18
  demo.launch()