Imadsarvm commited on
Commit
e0cdd02
·
1 Parent(s): 42d5ca1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 [im_rgba, pil_mask]
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=["image", "image"],
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,