Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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]
|