mouseland commited on
Commit
0a4f4bc
·
verified ·
1 Parent(s): 82f1447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -296,12 +296,12 @@ with gr.Blocks(title = "Hello",
296
  #filepath = ""
297
  with gr.Row():
298
  with gr.Column(scale=2):
299
- gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:20pt; font-weight:bold; text-align:center; color:white;">Cellpose-SAM for cellular
300
  segmentation <a style="color:#cfe7fe; font-size:14pt;" href="https://www.biorxiv.org/content/10.1101/2025.04.28.651001v1" target="_blank">[paper]</a>
301
  <a style="color:white; font-size:14pt;" href="https://github.com/MouseLand/cellpose" target="_blank">[github]</a>
302
  <a style="color:white; font-size:14pt;" href="https://www.youtube.com/watch?v=KIdYXgQemcI" target="_blank">[talk]</a>
303
  </div>""")
304
- gr.HTML("""<h4 style="color:white;">You may need to login/refresh for 5 minutes of free GPU compute per day (enough to process hundreds of images). </h4>""")
305
 
306
  input_image = gr.Image(label = "Input", type = "filepath")
307
 
@@ -318,7 +318,7 @@ with gr.Blocks(title = "Hello",
318
  #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>""")
319
 
320
  with gr.Column(scale=1):
321
- send_btn = gr.Button("Run Cellpose-SAM")
322
  down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
323
  down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
324
 
 
296
  #filepath = ""
297
  with gr.Row():
298
  with gr.Column(scale=2):
299
+ gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:20pt; font-weight:bold; text-align:center; color:white;">CellposeSAM for cellular
300
  segmentation <a style="color:#cfe7fe; font-size:14pt;" href="https://www.biorxiv.org/content/10.1101/2025.04.28.651001v1" target="_blank">[paper]</a>
301
  <a style="color:white; font-size:14pt;" href="https://github.com/MouseLand/cellpose" target="_blank">[github]</a>
302
  <a style="color:white; font-size:14pt;" href="https://www.youtube.com/watch?v=KIdYXgQemcI" target="_blank">[talk]</a>
303
  </div>""")
304
+ gr.HTML("""<h4 style="color:white;">You may need to login/refresh for 5 minutes of free GPU compute per day (enough to process hundreds of images). The model is now 'cpsam_v2' (updated June 2026). </h4>""")
305
 
306
  input_image = gr.Image(label = "Input", type = "filepath")
307
 
 
318
  #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>""")
319
 
320
  with gr.Column(scale=1):
321
+ send_btn = gr.Button("Run CellposeSAM")
322
  down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
323
  down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
324