Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,11 +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 rgb_image, mask_zip
|
| 78 |
else:
|
| 79 |
-
return rgb_image, None
|
| 80 |
-
|
| 81 |
-
|
| 82 |
|
| 83 |
|
| 84 |
my_app = gr.Blocks()
|
|
|
|
| 74 |
|
| 75 |
mask_zip, output_name = create_mask_zip(predicted_image)
|
| 76 |
if download_masks:
|
| 77 |
+
return "Predicted Masked Image", rgb_image, mask_zip.getvalue(), output_name
|
| 78 |
else:
|
| 79 |
+
return "Predicted Masked Image", rgb_image, None, None
|
|
|
|
|
|
|
| 80 |
|
| 81 |
|
| 82 |
my_app = gr.Blocks()
|