Update app.py
Browse files
app.py
CHANGED
|
@@ -316,10 +316,10 @@ with gr.Blocks(title = "Hello",
|
|
| 316 |
sample_list = []
|
| 317 |
for j in range(23):
|
| 318 |
sample_list.append("samples/img%0.2d.png"%j)
|
| 319 |
-
gr.Examples(sample_list, fn = update_button, inputs=input_image, outputs = [
|
| 320 |
|
| 321 |
-
input_image.upload(update_button, input_image, [
|
| 322 |
-
up_btn.upload(update_image, up_btn, [
|
| 323 |
send_btn.click(cellpose_segment, [up_btn, resize], [outlines, flows, down_btn, down_btn2])
|
| 324 |
|
| 325 |
#down_btn.click(download_function, None, [down_btn, down_btn2])
|
|
|
|
| 316 |
sample_list = []
|
| 317 |
for j in range(23):
|
| 318 |
sample_list.append("samples/img%0.2d.png"%j)
|
| 319 |
+
gr.Examples(sample_list, fn = update_button, inputs=input_image, outputs = [input_image, up_btn, outlines, flows], examples_per_page=25, label = "Click on an example to try it")
|
| 320 |
|
| 321 |
+
input_image.upload(update_button, input_image, [input_image, up_btn, outlines, flows])
|
| 322 |
+
up_btn.upload(update_image, up_btn, [input_image, up_btn, outlines, flows])
|
| 323 |
send_btn.click(cellpose_segment, [up_btn, resize], [outlines, flows, down_btn, down_btn2])
|
| 324 |
|
| 325 |
#down_btn.click(download_function, None, [down_btn, down_btn2])
|