Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse filesno update in gradio 4
app.py
CHANGED
@@ -58,7 +58,7 @@ def load_image_ui(load_edit, input_folder="example_tmp"):
|
|
58 |
segmentation = create_segmentation(mask_np_list)
|
59 |
print("!!", len(mask_np_list))
|
60 |
max_val = len(mask_np_list)-1
|
61 |
-
sliderup = gr.Slider
|
62 |
return image, segmentation, mask_np_list, mask_label_list, image, sliderup
|
63 |
except:
|
64 |
print("Image folder invalid: The folder should contain image.png")
|
|
|
58 |
segmentation = create_segmentation(mask_np_list)
|
59 |
print("!!", len(mask_np_list))
|
60 |
max_val = len(mask_np_list)-1
|
61 |
+
sliderup = gr.Slider(value = 0, minimum=0, maximum=max_val, step=1, interactive=True)
|
62 |
return image, segmentation, mask_np_list, mask_label_list, image, sliderup
|
63 |
except:
|
64 |
print("Image folder invalid: The folder should contain image.png")
|