Update app.py
Browse files
app.py
CHANGED
|
@@ -249,6 +249,10 @@ with gr.Blocks(title = "Hello",
|
|
| 249 |
img_overlay = gr.Image(label = "Overlay", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
|
| 250 |
flows = gr.Image(label = "Cellpose flows", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
|
| 251 |
#masks = gr.Image(label = "Output image", type = "numpy")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
|
| 253 |
|
| 254 |
send_btn.click(fn=cellpose_segment, inputs=[input_image, resize], outputs=[img_outlines, img_overlay, flows, down_btn, down_btn2])
|
|
|
|
| 249 |
img_overlay = gr.Image(label = "Overlay", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
|
| 250 |
flows = gr.Image(label = "Cellpose flows", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
|
| 251 |
#masks = gr.Image(label = "Output image", type = "numpy")
|
| 252 |
+
sample_list = []
|
| 253 |
+
for j in range(23):
|
| 254 |
+
sample_list.append("samples/img%0.2d.png"%j)
|
| 255 |
+
gr.Examples(sample_list, inputs=input_image)
|
| 256 |
|
| 257 |
|
| 258 |
send_btn.click(fn=cellpose_segment, inputs=[input_image, resize], outputs=[img_outlines, img_overlay, flows, down_btn, down_btn2])
|