Update app.py
Browse files
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.
|
| 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 |
|