JayRaghav commited on
Commit
a882f8c
1 Parent(s): f971fef
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
  from rembg import remove
3
 
4
- def segment(image):
5
- return remove(image)
6
-
7
  title = "Vanish Background"
8
  description = "Remove background for any image , To use it, simply upload your image and wait. Read more at the link below of official documentation."
9
  article = "<p style='text-align: center;'><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"
10
-
11
- gr.Interface(fn=segment, inputs="image", outputs="image").launch()
 
 
 
 
1
  import gradio as gr
2
  from rembg import remove
3
 
 
 
 
4
  title = "Vanish Background"
5
  description = "Remove background for any image , To use it, simply upload your image and wait. Read more at the link below of official documentation."
6
  article = "<p style='text-align: center;'><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"
7
+
8
+ def segment(image):
9
+ return remove(image)
10
+
11
+ gr.Interface(fn=segment, inputs="image", outputs="image", title=title, description=description, article=article).launch()