Update app.py
Browse files
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 |
-
|
| 172 |
except Exception as e:
|
| 173 |
print(e)
|
| 174 |
-
|
| 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:
|