Rydhi commited on
Commit
6da3f9c
·
1 Parent(s): 19842cd

Remove strict file_types filter blocking .nii.gz uploads

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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", file_types=[".nii", ".nii.gz"]),
44
- gr.File(label="T1ce", file_types=[".nii", ".nii.gz"]),
45
- gr.File(label="T2", file_types=[".nii", ".nii.gz"]),
46
- gr.File(label="FLAIR", file_types=[".nii", ".nii.gz"]),
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()