Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -268,7 +268,7 @@ with gr.Blocks() as demo:
|
|
| 268 |
with gr.Row():
|
| 269 |
with gr.Column(scale=1):
|
| 270 |
flair_input = gr.File(label="Upload a FLAIR Image (.nii.gz)")
|
| 271 |
-
|
| 272 |
submit_button = gr.Button("Submit")
|
| 273 |
with gr.Column(scale=2):
|
| 274 |
seg_output = gr.File(label="Download the Lesion Segmentation Mask")
|
|
@@ -291,7 +291,7 @@ with gr.Blocks() as demo:
|
|
| 291 |
|
| 292 |
submit_button.click(
|
| 293 |
fn=run_nnunet_predict,
|
| 294 |
-
inputs=[flair_input],
|
| 295 |
outputs=[seg_output, input_img, output_img]
|
| 296 |
)
|
| 297 |
|
|
|
|
| 268 |
with gr.Row():
|
| 269 |
with gr.Column(scale=1):
|
| 270 |
flair_input = gr.File(label="Upload a FLAIR Image (.nii.gz)")
|
| 271 |
+
hd_bet = gr.Checkbox(label="Apply skull-stripping", value=False)
|
| 272 |
submit_button = gr.Button("Submit")
|
| 273 |
with gr.Column(scale=2):
|
| 274 |
seg_output = gr.File(label="Download the Lesion Segmentation Mask")
|
|
|
|
| 291 |
|
| 292 |
submit_button.click(
|
| 293 |
fn=run_nnunet_predict,
|
| 294 |
+
inputs=[flair_input, hd_bet],
|
| 295 |
outputs=[seg_output, input_img, output_img]
|
| 296 |
)
|
| 297 |
|