mouseland commited on
Commit
4d163cf
·
verified ·
1 Parent(s): 56e0283

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -235,23 +235,23 @@ with gr.Blocks(title = "Hello",
235
  with gr.Row():
236
  resize = gr.Number(label = 'max resize', value = 400)
237
  send_btn = gr.Button("Run Cellpose-SAM")
238
-
239
- with gr.Row():
240
- down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
241
- down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
242
-
243
- gr.HTML("""<a style="color:white;" href="https://github.com/MouseLand/cellpose" target="_blank">github page for cellpose</a>""")
244
- gr.HTML("""<a style="color:white;" href="https://github.com/MouseLand/cellpose" target="_blank">Cellpose-SAM paper</a>""")
245
 
246
 
247
  with gr.Column(scale=2):
248
  img_outlines = gr.Image(label = "Outlines", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
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, examples_per_page=25)
256
 
257
 
 
235
  with gr.Row():
236
  resize = gr.Number(label = 'max resize', value = 400)
237
  send_btn = gr.Button("Run Cellpose-SAM")
 
 
 
 
 
 
 
238
 
239
 
240
  with gr.Column(scale=2):
241
  img_outlines = gr.Image(label = "Outlines", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
242
  img_overlay = gr.Image(label = "Overlay", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
243
  flows = gr.Image(label = "Cellpose flows", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
244
+
245
+ with gr.Row():
246
+ down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
247
+ down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
248
+
249
+ gr.HTML("""<a style="color:white;" href="https://github.com/MouseLand/cellpose" target="_blank">github page for cellpose</a>""")
250
+ gr.HTML("""<a style="color:white;" href="https://github.com/MouseLand/cellpose" target="_blank">Cellpose-SAM paper</a>""")
251
+
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, examples_per_page=25)
256
 
257