rphrp1985 commited on
Commit
a164036
1 Parent(s): 52d28f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -167,11 +167,12 @@ def respond(
167
  mask = pred_pil.resize(image_size)
168
  image.putalpha(mask)
169
  print('remver success')
 
170
  try:
171
- return str(convert_image_to_base64(image))
172
  except Exception as e:
173
  print(e)
174
- return image
175
 
176
 
177
  except Exception as e:
 
167
  mask = pred_pil.resize(image_size)
168
  image.putalpha(mask)
169
  print('remver success')
170
+
171
  try:
172
+ yield str(convert_image_to_base64(image))
173
  except Exception as e:
174
  print(e)
175
+ yield image
176
 
177
 
178
  except Exception as e: