niulx commited on
Commit
68d570d
1 Parent(s): 76cdc11

Update app.py

Browse files

no update in gradio 4

Files changed (1) hide show
  1. app.py +1 -1
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.update(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")
 
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")