OriLib commited on
Commit
fdc77c7
1 Parent(s): db969ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def resize_image(image):
44
  return image
45
 
46
 
47
- def process(Image):
48
 
49
  # prepare input
50
  orig_image = Image.fromarray(image)
@@ -111,7 +111,7 @@ title = "Background Removal"
111
  description = "Remove Image Background"
112
  examples = [['./input.jpg'],]
113
  output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
114
- demo = gr.Interface(fn=process,inputs="Image", outputs=output, examples=examples, title=title, description=description)
115
 
116
  if __name__ == "__main__":
117
  demo.launch(share=False)
 
44
  return image
45
 
46
 
47
+ def process(image):
48
 
49
  # prepare input
50
  orig_image = Image.fromarray(image)
 
111
  description = "Remove Image Background"
112
  examples = [['./input.jpg'],]
113
  output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
114
+ demo = gr.Interface(fn=process,inputs="image", outputs=output, examples=examples, title=title, description=description)
115
 
116
  if __name__ == "__main__":
117
  demo.launch(share=False)