carsen-stringer commited on
Commit
787a5ea
·
1 Parent(s): 808697d
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -104,14 +104,13 @@ def cellpose_segment(img):
104
 
105
  outpix = plot_outlines(img, masks)
106
  overlay = plot_overlay(img, masks)
107
- print(outpix.shape)
108
- return overlay, flows, masks
109
 
110
  # Gradio Interface
111
  iface = gr.Interface(
112
  fn=cellpose_segment,
113
  inputs="image",
114
- outputs=["image", "image", "image"],
115
  title="cellpose segmentation",
116
  description="upload an image, then cellpose will segment it at a max size of 224x224"
117
  )
 
104
 
105
  outpix = plot_outlines(img, masks)
106
  overlay = plot_overlay(img, masks)
107
+ return outpix, overlay, flows, masks
 
108
 
109
  # Gradio Interface
110
  iface = gr.Interface(
111
  fn=cellpose_segment,
112
  inputs="image",
113
+ outputs=["image", "image", "image", "image"],
114
  title="cellpose segmentation",
115
  description="upload an image, then cellpose will segment it at a max size of 224x224"
116
  )