mouseland commited on
Commit
c0e39ef
·
verified ·
1 Parent(s): 522173e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -227,18 +227,18 @@ with gr.Blocks(title = "Hello",
227
  with gr.Row():
228
  with gr.Column(scale=2):
229
  gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:white;">Cellpose-SAM for cellular segmentation</div>""")
230
- gr.HTML("""<h4 style="color:white;">You may need to refresh/login for 5 minutes of free GPU compute/day. <br> "pip install cellpose[gui]" for full functionality. </h4>""")
231
- #gr.HTML("""<h4 style="color:white;">"pip install cellpose" for full functionality. </h4>""")
232
 
233
  input_image = gr.Image(label = "Input image", type = "filepath")
234
 
235
  with gr.Row():
236
- resize = gr.Number(label = 'max resize', value = 1000)
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")
 
227
  with gr.Row():
228
  with gr.Column(scale=2):
229
  gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:white;">Cellpose-SAM for cellular segmentation</div>""")
230
+ gr.HTML("""<h4 style="color:white;">You may need to refresh/login for 5 minutes of free GPU compute/day. </h4>""")
231
+ gr.HTML("""<h4 style="color:white;">"pip install cellpose" for full functionality. </h4>""")
232
 
233
  input_image = gr.Image(label = "Input image", type = "filepath")
234
 
235
  with gr.Row():
236
+ resize = gr.Number(label = 'max resize', value = 1000)
 
237
 
238
+ with gr.Column():
239
+ send_btn = gr.Button("Run Cellpose-SAM")
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")