mouseland commited on
Commit
c3abe48
·
verified ·
1 Parent(s): fd1e2f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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=1):
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 as TIFF", visible=False)
164
  with gr.Column(scale=1):
165
- down_btn2 = gr.DownloadButton("Download outline image as PNG", visible=False)
166
 
167
- with gr.Column(scale=1):
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")