Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def run_segmentation_wrapper(image):
|
|
48 |
sliderup = gr.Slider(value = 0, minimum=0, maximum=max_val, step=1, visible=True)
|
49 |
return image, segmentation, mask_np_list, mask_label_list, image, sliderup, sliderup , 'Segmentation finish. Select mask id and move to the next step.'
|
50 |
except:
|
51 |
-
sliderup = gr.Slider(value = 0, minimum=0, maximum=
|
52 |
return None,None,None,None,None, sliderup, sliderup , 'Please upload an image before proceeding.'
|
53 |
|
54 |
|
|
|
48 |
sliderup = gr.Slider(value = 0, minimum=0, maximum=max_val, step=1, visible=True)
|
49 |
return image, segmentation, mask_np_list, mask_label_list, image, sliderup, sliderup , 'Segmentation finish. Select mask id and move to the next step.'
|
50 |
except:
|
51 |
+
sliderup = gr.Slider(value = 0, minimum=0, maximum=1, step=1, visible=False)
|
52 |
return None,None,None,None,None, sliderup, sliderup , 'Please upload an image before proceeding.'
|
53 |
|
54 |
|