Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,44 +58,17 @@ def process(image):
|
|
| 58 |
# new_orig_image = orig_image.convert('RGBA')
|
| 59 |
|
| 60 |
return new_im
|
| 61 |
-
# return [new_orig_image, new_im]
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
# block = gr.Blocks().queue()
|
| 65 |
-
|
| 66 |
-
# with block:
|
| 67 |
-
# gr.Markdown("## BRIA RMBG 1.4")
|
| 68 |
-
# gr.HTML('''
|
| 69 |
-
# <p style="margin-bottom: 10px; font-size: 94%">
|
| 70 |
-
# This is a demo for BRIA RMBG 1.4 that using
|
| 71 |
-
# <a href="https://huggingface.co/briaai/RMBG-1.4" target="_blank">BRIA RMBG-1.4 image matting model</a> as backbone.
|
| 72 |
-
# </p>
|
| 73 |
-
# ''')
|
| 74 |
-
# with gr.Row():
|
| 75 |
-
# with gr.Column():
|
| 76 |
-
# input_image = gr.Image(sources=None, type="pil") # None for upload, ctrl+v and webcam
|
| 77 |
-
# # input_image = gr.Image(sources=None, type="numpy") # None for upload, ctrl+v and webcam
|
| 78 |
-
# run_button = gr.Button(value="Run")
|
| 79 |
-
|
| 80 |
-
# with gr.Column():
|
| 81 |
-
# result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[1], height='auto')
|
| 82 |
-
# ips = [input_image]
|
| 83 |
-
# run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
|
| 84 |
-
|
| 85 |
-
# block.launch(debug = True)
|
| 86 |
-
|
| 87 |
-
# block = gr.Blocks().queue()
|
| 88 |
|
| 89 |
gr.Markdown("## BRIA RMBG 1.4")
|
| 90 |
gr.HTML('''
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
''')
|
| 96 |
title = "Background Removal"
|
| 97 |
-
description = r"""Background removal model
|
| 98 |
-
For test upload your image and wait
|
| 99 |
"""
|
| 100 |
examples = [['./input.jpg'],]
|
| 101 |
# output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
|
|
|
|
| 58 |
# new_orig_image = orig_image.convert('RGBA')
|
| 59 |
|
| 60 |
return new_im
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
gr.Markdown("## BRIA RMBG 1.4")
|
| 63 |
gr.HTML('''
|
| 64 |
+
<p style="margin-bottom: 10px; font-size: 94%">
|
| 65 |
+
Background removal model<br>
|
| 66 |
+
For just upload your image and wait some seconds.
|
| 67 |
+
</p>
|
| 68 |
''')
|
| 69 |
title = "Background Removal"
|
| 70 |
+
description = r"""Background removal model<br>
|
| 71 |
+
For test upload your image and wait some seconds.
|
| 72 |
"""
|
| 73 |
examples = [['./input.jpg'],]
|
| 74 |
# output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
|