Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
168 |
"Uploading a nucleus image is necessary. A random crop of 256 x 256 will be applied if larger. We provide default images in [images](https://huggingface.co/spaces/HuangLab/CELL-E_2/tree/main/images). Draw the desired localization on top of the nucelus image. Due to Gradio limitations, this mask will draw in black."
|
169 |
)
|
170 |
|
171 |
-
with gr.Row(
|
172 |
#nucleus_image = gr.Image(
|
173 |
# source="upload",
|
174 |
# tool="color-sketch",
|
@@ -188,7 +188,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
188 |
with gr.Row():
|
189 |
gr.Markdown("## Outputs")
|
190 |
|
191 |
-
with gr.Row(
|
192 |
nucleus_crop = gr.Image(
|
193 |
label="Nucleus Image (Crop)",
|
194 |
image_mode="L",
|
@@ -203,7 +203,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
203 |
with gr.Row():
|
204 |
gr.Markdown("Sequence predictions are show below.")
|
205 |
|
206 |
-
with gr.Row(
|
207 |
# predicted_sequence = gr.Markdown(label='Predicted Sequence')
|
208 |
predicted_sequence = gr.HighlightedText(
|
209 |
label="Predicted Sequence",
|
|
|
168 |
"Uploading a nucleus image is necessary. A random crop of 256 x 256 will be applied if larger. We provide default images in [images](https://huggingface.co/spaces/HuangLab/CELL-E_2/tree/main/images). Draw the desired localization on top of the nucelus image. Due to Gradio limitations, this mask will draw in black."
|
169 |
)
|
170 |
|
171 |
+
with gr.Row(equal_height=True):
|
172 |
#nucleus_image = gr.Image(
|
173 |
# source="upload",
|
174 |
# tool="color-sketch",
|
|
|
188 |
with gr.Row():
|
189 |
gr.Markdown("## Outputs")
|
190 |
|
191 |
+
with gr.Row(equal_height=True):
|
192 |
nucleus_crop = gr.Image(
|
193 |
label="Nucleus Image (Crop)",
|
194 |
image_mode="L",
|
|
|
203 |
with gr.Row():
|
204 |
gr.Markdown("Sequence predictions are show below.")
|
205 |
|
206 |
+
with gr.Row(equal_height=True):
|
207 |
# predicted_sequence = gr.Markdown(label='Predicted Sequence')
|
208 |
predicted_sequence = gr.HighlightedText(
|
209 |
label="Predicted Sequence",
|