Update app.py
Browse files
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 |
-
|
| 134 |
-
|
|
|
|
| 135 |
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 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 |
|