mouseland commited on
Commit
77e473c
·
verified ·
1 Parent(s): a3dc09f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -130,16 +130,17 @@ with gr.Blocks(title = "Hello",
130
  css=".gradio-container {background:purple;}") as demo:
131
 
132
  with gr.Row():
133
- input_image = gr.Image(label = "Input image", type = "numpy")
134
- output_image1 = gr.Image(label = "Output image", type = "numpy")
 
135
 
136
- send_btn = gr.Button("Run Cellpose-SAM")
137
-
138
- with gr.Row():
139
- output_image2 = gr.Image(label = "Output image", type = "numpy")
140
- output_image3 = gr.Image(label = "Output image", type = "numpy")
141
 
142
- send_btn.click(fn=cellpose_segment, inputs=[input_image], outputs=[output_image1, output_image2, output_image3])
143
 
144
 
145
 
 
130
  css=".gradio-container {background:purple;}") as demo:
131
 
132
  with gr.Row():
133
+ with gr.Column(scale=1):
134
+ input_image = gr.Image(label = "Input image", type = "numpy")
135
+ send_btn = gr.Button("Run Cellpose-SAM")
136
 
137
+ with gr.Column(scale=1):
138
+ output_image1 = gr.Image(label = "Output image", type = "numpy")
139
+ output_image2 = gr.Image(label = "Output image", type = "numpy")
140
+ output_image3 = gr.Image(label = "Output image", type = "numpy")
141
+ output_image4 = gr.Image(label = "Output image", type = "numpy")
142
 
143
+ send_btn.click(fn=cellpose_segment, inputs=[input_image], outputs=[output_image1, output_image4, output_image2, output_image3])
144
 
145
 
146