Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def process(image):
|
|
55 |
new_im.paste(orig_image, mask=pil_im)
|
56 |
|
57 |
# return new_im
|
58 |
-
return [
|
59 |
|
60 |
|
61 |
# block = gr.Blocks().queue()
|
@@ -91,7 +91,7 @@ gr.HTML('''
|
|
91 |
</p>
|
92 |
''')
|
93 |
title = "Background Removal"
|
94 |
-
description = "Remove
|
95 |
examples = [['./input.jpg'],]
|
96 |
output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
|
97 |
demo = gr.Interface(fn=process,inputs="image", outputs=output, examples=examples, title=title, description=description)
|
|
|
55 |
new_im.paste(orig_image, mask=pil_im)
|
56 |
|
57 |
# return new_im
|
58 |
+
return [new_im, new_im]
|
59 |
|
60 |
|
61 |
# block = gr.Blocks().queue()
|
|
|
91 |
</p>
|
92 |
''')
|
93 |
title = "Background Removal"
|
94 |
+
description = "Remove background from any image"
|
95 |
examples = [['./input.jpg'],]
|
96 |
output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
|
97 |
demo = gr.Interface(fn=process,inputs="image", outputs=output, examples=examples, title=title, description=description)
|