Spaces:
Build error
Build error
Better blocks formatting
Browse files
app.py
CHANGED
@@ -124,16 +124,19 @@ with gr.Blocks() as demo:
|
|
124 |
gr.Markdown(title)
|
125 |
gr.Markdown(description)
|
126 |
|
127 |
-
|
128 |
-
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
input_image = gr.Gallery(label='input MRI sequences (T1+, T1, T2, FLAIR)')
|
136 |
-
output_segmentation = gr.Gallery(label='output segmentations (TC, EC, WT)')
|
137 |
|
138 |
# Run prediction on button click
|
139 |
button.click(
|
|
|
124 |
gr.Markdown(title)
|
125 |
gr.Markdown(description)
|
126 |
|
127 |
+
with gr.Row():
|
128 |
+
with gr.Column():
|
129 |
+
# Get the input file and slice slider as inputs
|
130 |
+
input_file = gr.File(label='input file')
|
131 |
+
z_axis = gr.Slider(0, 200, label='z-axis', value=50)
|
132 |
+
|
133 |
+
# Show the button with custom label
|
134 |
+
button = gr.Button("Segment Tumor!")
|
135 |
|
136 |
+
with gr.Column():
|
137 |
+
# Show the input image with different MR sequences
|
138 |
+
input_image = gr.Gallery(label='input MRI sequences (T1+, T1, T2, FLAIR)')
|
139 |
+
output_segmentation = gr.Gallery(label='output segmentations (TC, EC, WT)')
|
|
|
|
|
140 |
|
141 |
# Run prediction on button click
|
142 |
button.click(
|