Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,7 +145,7 @@ def inference(image):
|
|
| 145 |
im_rgba = im_rgb.copy()
|
| 146 |
im_rgba.putalpha(pil_mask)
|
| 147 |
|
| 148 |
-
return im_rgba, imrgba2
|
| 149 |
|
| 150 |
|
| 151 |
title = "Bg remover for sarvm catalog"
|
|
@@ -155,7 +155,7 @@ article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=
|
|
| 155 |
interface = gr.Interface(
|
| 156 |
fn=inference,
|
| 157 |
inputs=gr.Image(type='filepath'),
|
| 158 |
-
outputs=["image","image"],
|
| 159 |
title=title,
|
| 160 |
description=description,
|
| 161 |
article=article,
|
|
|
|
| 145 |
im_rgba = im_rgb.copy()
|
| 146 |
im_rgba.putalpha(pil_mask)
|
| 147 |
|
| 148 |
+
return im_rgba, imrgba2 , im_rgba
|
| 149 |
|
| 150 |
|
| 151 |
title = "Bg remover for sarvm catalog"
|
|
|
|
| 155 |
interface = gr.Interface(
|
| 156 |
fn=inference,
|
| 157 |
inputs=gr.Image(type='filepath'),
|
| 158 |
+
outputs=["image","image","image"],
|
| 159 |
title=title,
|
| 160 |
description=description,
|
| 161 |
article=article,
|