srbdni commited on
Commit
15139f3
·
1 Parent(s): 9ab2e26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,7 +134,7 @@ def inference(image: Image):
134
  im_rgba = im_rgb.copy()
135
  im_rgba.putalpha(pil_mask)
136
 
137
- return [im_rgba]
138
 
139
 
140
  title = ""
@@ -144,7 +144,7 @@ article = ""
144
  interface = gr.Interface(
145
  fn=inference,
146
  inputs=gr.Image(type='filepath'),
147
- outputs=["image"],
148
  examples=[['robot.png'], ['ship.png']],
149
  title=title,
150
  description=description,
 
134
  im_rgba = im_rgb.copy()
135
  im_rgba.putalpha(pil_mask)
136
 
137
+ return [im_rgba,pil_mask]
138
 
139
 
140
  title = ""
 
144
  interface = gr.Interface(
145
  fn=inference,
146
  inputs=gr.Image(type='filepath'),
147
+ outputs=["image","image"],
148
  examples=[['robot.png'], ['ship.png']],
149
  title=title,
150
  description=description,