mouseland commited on
Commit
7798670
·
verified ·
1 Parent(s): 157bb22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -279,19 +279,22 @@ with gr.Blocks(title = "Hello",
279
  with gr.Row():
280
  with gr.Column(scale=1):
281
  resize = gr.Number(label = 'max resize', value = 1000)
 
 
282
  #gr.HTML("""<h4 style="color:white;"> Note2: Only the first image of a tif will display the segmentations, but you can download segmentations for all planes. </h4>""")
283
 
284
  #filepath = gr.UploadButton("Upload (png, jpg, tif etc)", visible=True, file_count = "single")
285
 
286
 
287
  with gr.Column(scale=1):
288
- send_btn = gr.Button("Run Cellpose-SAM")
289
  down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
290
  down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
 
 
 
291
 
292
 
293
  with gr.Column(scale=2):
294
- img_outlines = gr.Image(label = "Outlines", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
295
  img_overlay = gr.Image(label = "Overlay", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
296
  flows = gr.Image(label = "Cellpose flows", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
297
 
 
279
  with gr.Row():
280
  with gr.Column(scale=1):
281
  resize = gr.Number(label = 'max resize', value = 1000)
282
+ send_btn = gr.Button("Run Cellpose-SAM")
283
+
284
  #gr.HTML("""<h4 style="color:white;"> Note2: Only the first image of a tif will display the segmentations, but you can download segmentations for all planes. </h4>""")
285
 
286
  #filepath = gr.UploadButton("Upload (png, jpg, tif etc)", visible=True, file_count = "single")
287
 
288
 
289
  with gr.Column(scale=1):
 
290
  down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
291
  down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
292
+
293
+ img_outlines = gr.Image(label = "Outlines", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
294
+
295
 
296
 
297
  with gr.Column(scale=2):
 
298
  img_overlay = gr.Image(label = "Overlay", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
299
  flows = gr.Image(label = "Cellpose flows", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
300