Remove strict file_types filter blocking .nii.gz uploads
Browse files
app.py
CHANGED
|
@@ -40,17 +40,17 @@ def run(t1_file, t1ce_file, t2_file, flair_file):
|
|
| 40 |
demo = gr.Interface(
|
| 41 |
fn=run,
|
| 42 |
inputs=[
|
| 43 |
-
gr.File(label="T1"
|
| 44 |
-
gr.File(label="T1ce"
|
| 45 |
-
gr.File(label="T2"
|
| 46 |
-
gr.File(label="FLAIR"
|
| 47 |
],
|
| 48 |
outputs=[
|
| 49 |
gr.Image(label="Segmentation Preview"),
|
| 50 |
gr.File(label="Download PDF Report"),
|
| 51 |
],
|
| 52 |
title="MedSegNet — Brain Tumor Segmentation",
|
| 53 |
-
description="Upload T1, T1ce, T2, and FLAIR NIfTI volumes to get automated tumor segmentation.",
|
| 54 |
)
|
| 55 |
|
| 56 |
demo.launch()
|
|
|
|
| 40 |
demo = gr.Interface(
|
| 41 |
fn=run,
|
| 42 |
inputs=[
|
| 43 |
+
gr.File(label="T1"),
|
| 44 |
+
gr.File(label="T1ce"),
|
| 45 |
+
gr.File(label="T2"),
|
| 46 |
+
gr.File(label="FLAIR"),
|
| 47 |
],
|
| 48 |
outputs=[
|
| 49 |
gr.Image(label="Segmentation Preview"),
|
| 50 |
gr.File(label="Download PDF Report"),
|
| 51 |
],
|
| 52 |
title="MedSegNet — Brain Tumor Segmentation",
|
| 53 |
+
description="Upload T1, T1ce, T2, and FLAIR NIfTI volumes (.nii or .nii.gz) to get automated tumor segmentation.",
|
| 54 |
)
|
| 55 |
|
| 56 |
demo.launch()
|