Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,7 @@ def inference(image):
|
|
142 |
im_rgba = im_rgb.copy()
|
143 |
im_rgba.putalpha(pil_mask)
|
144 |
|
145 |
-
return
|
146 |
|
147 |
|
148 |
title = "Bg remover"
|
@@ -152,7 +152,7 @@ article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=
|
|
152 |
interface = gr.Interface(
|
153 |
fn=inference,
|
154 |
inputs=gr.Image(type='filepath'),
|
155 |
-
outputs=
|
156 |
title=title,
|
157 |
description=description,
|
158 |
article=article,
|
|
|
142 |
im_rgba = im_rgb.copy()
|
143 |
im_rgba.putalpha(pil_mask)
|
144 |
|
145 |
+
return im_rgba
|
146 |
|
147 |
|
148 |
title = "Bg remover"
|
|
|
152 |
interface = gr.Interface(
|
153 |
fn=inference,
|
154 |
inputs=gr.Image(type='filepath'),
|
155 |
+
outputs="image",
|
156 |
title=title,
|
157 |
description=description,
|
158 |
article=article,
|