Update app.py
Browse files
app.py
CHANGED
|
@@ -224,7 +224,7 @@ def cellpose_segment(img_pil, resize = 1000):
|
|
| 224 |
b1 = gr.DownloadButton(visible=True, value = fname_masks)
|
| 225 |
b2 = gr.DownloadButton(visible=True, value = fname_out) #"outlines.png")
|
| 226 |
|
| 227 |
-
return outpix,
|
| 228 |
|
| 229 |
# Gradio Interface
|
| 230 |
#iface = gr.Interface(
|
|
@@ -307,7 +307,7 @@ with gr.Blocks(title = "Hello",
|
|
| 307 |
|
| 308 |
#input_image.change(update_image, input_image, [input_image, filepath])
|
| 309 |
#up_btn.upload(upload_file, up_btn, [input_image, up_btn, down_btn, down_btn2])
|
| 310 |
-
send_btn.click(cellpose_segment, [input_image, resize], [img_outlines,
|
| 311 |
|
| 312 |
#down_btn.click(download_function, None, [down_btn, down_btn2])
|
| 313 |
|
|
|
|
| 224 |
b1 = gr.DownloadButton(visible=True, value = fname_masks)
|
| 225 |
b2 = gr.DownloadButton(visible=True, value = fname_out) #"outlines.png")
|
| 226 |
|
| 227 |
+
return outpix, flows, b1, b2
|
| 228 |
|
| 229 |
# Gradio Interface
|
| 230 |
#iface = gr.Interface(
|
|
|
|
| 307 |
|
| 308 |
#input_image.change(update_image, input_image, [input_image, filepath])
|
| 309 |
#up_btn.upload(upload_file, up_btn, [input_image, up_btn, down_btn, down_btn2])
|
| 310 |
+
send_btn.click(cellpose_segment, [input_image, resize], [img_outlines, flows, down_btn, down_btn2])
|
| 311 |
|
| 312 |
#down_btn.click(download_function, None, [down_btn, down_btn2])
|
| 313 |
|