mouseland commited on
Commit
a6f1288
·
verified ·
1 Parent(s): 6b18da4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -268,7 +268,7 @@ with gr.Blocks(title = "Hello",
268
  #filepath = ""
269
  with gr.Row():
270
  with gr.Column(scale=2):
271
- 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>""")
272
  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>""")
273
 
274
  input_image = gr.Image(label = "Input", type = "filepath")
@@ -287,10 +287,10 @@ with gr.Blocks(title = "Hello",
287
  down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
288
  down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
289
 
290
- gr.HTML("""<h4 style="color:white;">Install Cellpose-SAM locally for full functionality. </h4>""")
291
  with gr.Row():
292
- gr.HTML("""<a style="color:white; font-size:16pt;" href="https://github.com/MouseLand/cellpose" target="_blank">Github page</a>""")
293
- gr.HTML("""<a style="color:white; font-size:16pt;" href="https://github.com/MouseLand/cellpose" target="_blank">Paper</a>""")
 
294
 
295
 
296
  with gr.Column(scale=2):
@@ -303,7 +303,7 @@ with gr.Blocks(title = "Hello",
303
  sample_list = []
304
  for j in range(23):
305
  sample_list.append("samples/img%0.2d.png"%j)
306
- gr.Examples(sample_list, inputs=input_image, examples_per_page=25)
307
 
308
  #input_image.change(update_image, input_image, [input_image, filepath])
309
  #up_btn.upload(upload_file, up_btn, [input_image, up_btn, down_btn, down_btn2])
 
268
  #filepath = ""
269
  with gr.Row():
270
  with gr.Column(scale=2):
271
+ 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 segmentation</div>""")
272
  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>""")
273
 
274
  input_image = gr.Image(label = "Input", type = "filepath")
 
287
  down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
288
  down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
289
 
 
290
  with gr.Row():
291
+ gr.HTML("""<a style="color:white; font-size:14pt;" href="https://github.com/MouseLand/cellpose" target="_blank">Github page</a>""")
292
+ gr.HTML("""<a style="color:white; font-size:14pt;" href="https://github.com/MouseLand/cellpose" target="_blank">Paper</a>""")
293
+ gr.HTML("""<h4 style="color:white;">Install Cellpose-SAM locally for full functionality. </h4>""")
294
 
295
 
296
  with gr.Column(scale=2):
 
303
  sample_list = []
304
  for j in range(23):
305
  sample_list.append("samples/img%0.2d.png"%j)
306
+ gr.Examples(sample_list, inputs=input_image, examples_per_page=25, label = "Click on an example to try it")
307
 
308
  #input_image.change(update_image, input_image, [input_image, filepath])
309
  #up_btn.upload(upload_file, up_btn, [input_image, up_btn, down_btn, down_btn2])