update
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ def inpaint(
|
|
| 79 |
return result
|
| 80 |
|
| 81 |
|
| 82 |
-
def rmbg(image, url):
|
| 83 |
if image is None:
|
| 84 |
image = url
|
| 85 |
image = load_img(image).convert("RGB")
|
|
@@ -110,7 +110,7 @@ rmbg_tab = gr.Interface(
|
|
| 110 |
inputs=[gr.Number(1, visible=False), "image", "text"],
|
| 111 |
outputs=["image"],
|
| 112 |
api_name="rmbg",
|
| 113 |
-
examples=[[1, "./assets/Inpainting mask.png",
|
| 114 |
)
|
| 115 |
|
| 116 |
outpaint_tab = gr.Interface(
|
|
|
|
| 79 |
return result
|
| 80 |
|
| 81 |
|
| 82 |
+
def rmbg(image=None, url=None):
|
| 83 |
if image is None:
|
| 84 |
image = url
|
| 85 |
image = load_img(image).convert("RGB")
|
|
|
|
| 110 |
inputs=[gr.Number(1, visible=False), "image", "text"],
|
| 111 |
outputs=["image"],
|
| 112 |
api_name="rmbg",
|
| 113 |
+
examples=[[1, "./assets/Inpainting mask.png", ""]],
|
| 114 |
)
|
| 115 |
|
| 116 |
outpaint_tab = gr.Interface(
|