katielink commited on
Commit
5e59526
·
1 Parent(s): 73400f9

Better blocks formatting

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -124,16 +124,19 @@ with gr.Blocks() as demo:
124
  gr.Markdown(title)
125
  gr.Markdown(description)
126
 
127
- # Get the input file and slice slider as inputs
128
- input_file = gr.File(label='input file')
129
- z_axis = gr.Slider(0, 200, label='z-axis', value=50)
 
 
 
 
 
130
 
131
- # Show the button with custom label
132
- button = gr.Button("Segment Tumor!")
133
-
134
- # Show the input image with different MR sequences
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(