Update app.py
Browse files
app.py
CHANGED
|
@@ -279,23 +279,23 @@ 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 |
-
|
| 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 |
-
|
|
|
|
| 299 |
flows = gr.Image(label = "Cellpose flows", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
|
| 300 |
|
| 301 |
|
|
|
|
| 279 |
with gr.Row():
|
| 280 |
with gr.Column(scale=1):
|
| 281 |
resize = gr.Number(label = 'max resize', value = 1000)
|
| 282 |
+
|
|
|
|
| 283 |
#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>""")
|
| 284 |
|
| 285 |
#filepath = gr.UploadButton("Upload (png, jpg, tif etc)", visible=True, file_count = "single")
|
| 286 |
|
| 287 |
|
| 288 |
with gr.Column(scale=1):
|
| 289 |
+
send_btn = gr.Button("Run Cellpose-SAM")
|
| 290 |
down_btn = gr.DownloadButton("Download masks (TIF)", visible=False)
|
| 291 |
down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
|
| 292 |
|
|
|
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
+
with gr.Column(scale=2):
|
| 297 |
+
img_outlines = gr.Image(label = "Outlines", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
|
| 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 |
|
| 301 |
|