niulx commited on
Commit
38cec45
·
verified ·
1 Parent(s): cbca4d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ def edit_mask_add(canvas, image, idx, mask_np_list):
115
 
116
  def slider_release(index, image, mask_np_list_updated, mask_label_list):
117
 
118
- if index > len(mask_np_list_updated):
119
  return image, "out of range"
120
  else:
121
  mask_np = mask_np_list_updated[index]
 
115
 
116
  def slider_release(index, image, mask_np_list_updated, mask_label_list):
117
 
118
+ if index > len(mask_np_list_updated)-1:
119
  return image, "out of range"
120
  else:
121
  mask_np = mask_np_list_updated[index]