Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,9 +74,9 @@ def process_input_image(image_source, download_masks=False):
|
|
| 74 |
|
| 75 |
mask_zip, output_name = create_mask_zip(predicted_image)
|
| 76 |
if download_masks:
|
| 77 |
-
return
|
| 78 |
else:
|
| 79 |
-
return
|
| 80 |
|
| 81 |
|
| 82 |
|
|
@@ -176,7 +176,6 @@ with my_app:
|
|
| 176 |
download_masks_checkbox
|
| 177 |
],
|
| 178 |
[
|
| 179 |
-
output_label,
|
| 180 |
img_output,
|
| 181 |
masks_zip,
|
| 182 |
]
|
|
|
|
| 74 |
|
| 75 |
mask_zip, output_name = create_mask_zip(predicted_image)
|
| 76 |
if download_masks:
|
| 77 |
+
return rgb_image, mask_zip
|
| 78 |
else:
|
| 79 |
+
return rgb_image, None
|
| 80 |
|
| 81 |
|
| 82 |
|
|
|
|
| 176 |
download_masks_checkbox
|
| 177 |
],
|
| 178 |
[
|
|
|
|
| 179 |
img_output,
|
| 180 |
masks_zip,
|
| 181 |
]
|