Update app.py
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
| 130 |
)
|
| 131 |
gr.Markdown("The protein image is optional and is just used for display.")
|
| 132 |
|
| 133 |
-
with gr.Row(
|
| 134 |
nucleus_image = gr.Image(
|
| 135 |
type="pil",
|
| 136 |
label="Nucleus Image",
|
|
@@ -145,7 +145,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
| 145 |
with gr.Row():
|
| 146 |
gr.Markdown("Image predictions are show below.")
|
| 147 |
|
| 148 |
-
with gr.Row(
|
| 149 |
nucleus_image_crop = gr.Image(type="pil", label="Nucleus Image", image_mode="L")
|
| 150 |
|
| 151 |
protein_threshold_image = gr.Image(
|
|
@@ -171,4 +171,4 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
| 171 |
|
| 172 |
button.click(base_class.gradio_demo, inputs, outputs)
|
| 173 |
|
| 174 |
-
demo.
|
|
|
|
| 130 |
)
|
| 131 |
gr.Markdown("The protein image is optional and is just used for display.")
|
| 132 |
|
| 133 |
+
with gr.Row(equal_height=True):
|
| 134 |
nucleus_image = gr.Image(
|
| 135 |
type="pil",
|
| 136 |
label="Nucleus Image",
|
|
|
|
| 145 |
with gr.Row():
|
| 146 |
gr.Markdown("Image predictions are show below.")
|
| 147 |
|
| 148 |
+
with gr.Row(equal_height=True):
|
| 149 |
nucleus_image_crop = gr.Image(type="pil", label="Nucleus Image", image_mode="L")
|
| 150 |
|
| 151 |
protein_threshold_image = gr.Image(
|
|
|
|
| 171 |
|
| 172 |
button.click(base_class.gradio_demo, inputs, outputs)
|
| 173 |
|
| 174 |
+
demo.queue(max_size=1).launch()
|