mouseland commited on
Commit
2ad5b85
·
verified ·
1 Parent(s): 4bde3b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -305,7 +305,7 @@ with gr.Blocks(title = "Hello",
305
  sample_list.append("samples/img%0.2d.png"%j)
306
  gr.Examples(sample_list, inputs=input_image, examples_per_page=25, label = "Click on an example to try it")
307
 
308
- input_image.upload(update_image, input_image, up_btn)
309
  up_btn.upload(upload_file, up_btn, [input_image])
310
  send_btn.click(cellpose_segment, [up_btn, resize], [img_outlines, flows, down_btn, down_btn2])
311
 
 
305
  sample_list.append("samples/img%0.2d.png"%j)
306
  gr.Examples(sample_list, inputs=input_image, examples_per_page=25, label = "Click on an example to try it")
307
 
308
+ input_image.change(update_image, input_image, up_btn)
309
  up_btn.upload(upload_file, up_btn, [input_image])
310
  send_btn.click(cellpose_segment, [up_btn, resize], [img_outlines, flows, down_btn, down_btn2])
311