niulx commited on
Commit
6837a23
1 Parent(s): 577723e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=max_val, step=1, visible=False)
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