Update app.py
Browse files
app.py
CHANGED
|
@@ -156,15 +156,15 @@ with gr.Blocks(title = "Hello",
|
|
| 156 |
css=".gradio-container {background:purple;}") as demo:
|
| 157 |
|
| 158 |
with gr.Row():
|
| 159 |
-
with gr.Column(scale=
|
| 160 |
input_image = gr.Image(label = "Input image", type = "numpy")
|
| 161 |
send_btn = gr.Button("Run Cellpose-SAM")
|
| 162 |
with gr.Column(scale=1):
|
| 163 |
-
down_btn = gr.DownloadButton("Download masks
|
| 164 |
with gr.Column(scale=1):
|
| 165 |
-
down_btn2 = gr.DownloadButton("Download
|
| 166 |
|
| 167 |
-
with gr.Column(scale=
|
| 168 |
img_outlines = gr.Image(label = "Output image", type = "pil")
|
| 169 |
img_overlay = gr.Image(label = "Output image", type = "numpy")
|
| 170 |
flows = gr.Image(label = "Output image", type = "numpy")
|
|
|
|
| 156 |
css=".gradio-container {background:purple;}") as demo:
|
| 157 |
|
| 158 |
with gr.Row():
|
| 159 |
+
with gr.Column(scale=2):
|
| 160 |
input_image = gr.Image(label = "Input image", type = "numpy")
|
| 161 |
send_btn = gr.Button("Run Cellpose-SAM")
|
| 162 |
with gr.Column(scale=1):
|
| 163 |
+
down_btn = gr.DownloadButton("Download masks (TIFF)", visible=False)
|
| 164 |
with gr.Column(scale=1):
|
| 165 |
+
down_btn2 = gr.DownloadButton("Download outlines (PNG)", visible=False)
|
| 166 |
|
| 167 |
+
with gr.Column(scale=2):
|
| 168 |
img_outlines = gr.Image(label = "Output image", type = "pil")
|
| 169 |
img_overlay = gr.Image(label = "Output image", type = "numpy")
|
| 170 |
flows = gr.Image(label = "Output image", type = "numpy")
|