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