Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,8 +48,8 @@ def process_file(f):
|
|
| 48 |
transparent.save(name_path)
|
| 49 |
return name_path
|
| 50 |
|
| 51 |
-
slider1 = ImageSlider(label="
|
| 52 |
-
slider2 = ImageSlider(label="
|
| 53 |
image = gr.Image(label="Upload an image")
|
| 54 |
image2 = gr.Image(label="Upload an image",type="filepath")
|
| 55 |
text = gr.Textbox(label="Paste an image URL")
|
|
@@ -69,7 +69,7 @@ tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["gi
|
|
| 69 |
|
| 70 |
|
| 71 |
demo = gr.TabbedInterface(
|
| 72 |
-
[tab1, tab2,tab3], ["image", "text","png"], title="
|
| 73 |
)
|
| 74 |
|
| 75 |
if __name__ == "__main__":
|
|
|
|
| 48 |
transparent.save(name_path)
|
| 49 |
return name_path
|
| 50 |
|
| 51 |
+
slider1 = ImageSlider(label="RMBG-2.0", type="pil")
|
| 52 |
+
slider2 = ImageSlider(label="RMBG-2.0", type="pil")
|
| 53 |
image = gr.Image(label="Upload an image")
|
| 54 |
image2 = gr.Image(label="Upload an image",type="filepath")
|
| 55 |
text = gr.Textbox(label="Paste an image URL")
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
demo = gr.TabbedInterface(
|
| 72 |
+
[tab1, tab2,tab3], ["image", "text","png"], title="RMBG-2.0 for background removal"
|
| 73 |
)
|
| 74 |
|
| 75 |
if __name__ == "__main__":
|