OriLib commited on
Commit
8cb0f2e
1 Parent(s): 529fb6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -113,7 +113,8 @@ def process(image):
113
  title = "background_removal"
114
  description = "remove image background"
115
  examples = [['./input.jpg'],]
116
- demo = gr.Interface(fn=process,inputs="image",outputs=ImageSlider(position=0.5,label='Image without background slider-view'),examples=examples,title=title,description=description, type="pil")
 
117
 
118
  if __name__ == "__main__":
119
  demo.launch(share=False)
 
113
  title = "background_removal"
114
  description = "remove image background"
115
  examples = [['./input.jpg'],]
116
+ output = ImageSlider(position=0.5,label='Image without background slider-view', type="pil")
117
+ demo = gr.Interface(fn=process,inputs="image", outputs=output, examples=examples, title=title, description=description)
118
 
119
  if __name__ == "__main__":
120
  demo.launch(share=False)