mouseland commited on
Commit
0be0b03
·
verified ·
1 Parent(s): 4d163cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -236,18 +236,19 @@ with gr.Blocks(title = "Hello",
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):
 
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
  with gr.Column(scale=2):
244
  img_outlines = gr.Image(label = "Outlines", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
245
  img_overlay = gr.Image(label = "Overlay", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
246
  flows = gr.Image(label = "Cellpose flows", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
247
 
 
 
 
248
 
249
+ with gr.Row():
250
+ gr.HTML("""<a style="color:white;" href="https://github.com/MouseLand/cellpose" target="_blank">github page for cellpose</a>""")
251
+ gr.HTML("""<a style="color:white;" href="https://github.com/MouseLand/cellpose" target="_blank">Cellpose-SAM paper</a>""")
252
 
253
  sample_list = []
254
  for j in range(23):