Chancee12 commited on
Commit
e9c805b
·
1 Parent(s): 0455b57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 "Predicted Masked Image", rgb_image, mask_zip, output_name
78
  else:
79
- return "Predicted Masked Image", rgb_image, None, None
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
  ]