Janeka commited on
Commit
ba74bfc
·
verified ·
1 Parent(s): 5bb06e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -6,7 +6,13 @@ def remove_bg(image):
6
  output_image = remove(image)
7
  return output_image
8
 
9
- demo = gr.Interface(fn=remove_bg, inputs=gr.Image(type="pil"), outputs="image")
 
 
 
 
 
10
 
 
11
  if __name__ == "__main__":
12
- demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
 
6
  output_image = remove(image)
7
  return output_image
8
 
9
+ # Create Gradio interface
10
+ demo = gr.Interface(
11
+ fn=remove_bg,
12
+ inputs=gr.Image(type="pil"), # Accept PIL images
13
+ outputs="image", # Output as an image
14
+ )
15
 
16
+ # Launch the app
17
  if __name__ == "__main__":
18
+ demo.launch(share=True)