Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -122,17 +122,20 @@ def predict_brain_age(nifti_file, actual_age, sex):
|
|
122 |
with gr.Blocks() as demo:
|
123 |
gr.Markdown("""
|
124 |
# 🧠 BrainAgeNeXt: Advancing Brain Age Modeling
|
125 |
-
Upload a preprocessed T1w MRI scan (.nii.gz), enter the age and sex of the subject, and get
|
126 |
|
127 |
The following preprocessing steps are required.
|
128 |
1. Skull-stripping using [SynthStrip](https://surfer.nmr.mgh.harvard.edu/docs/synthstrip/) with the `--no-csf` flag for optimal results.
|
129 |
2. N4 bias field correction using [ANTs](https://github.com/ANTsX/ANTs/wiki/N4BiasFieldCorrection).
|
130 |
3. Affine registration to the MNI 1mm isotropic template space.
|
|
|
|
|
|
|
131 |
""")
|
132 |
|
133 |
with gr.Row():
|
134 |
with gr.Column(scale=1):
|
135 |
-
mri_input = gr.File(label="Upload MRI (NIfTI .nii.gz)")
|
136 |
age_input = gr.Number(label="Enter Age", value=30)
|
137 |
sex_input = gr.Radio(["Male", "Female"], label="Select Sex")
|
138 |
submit_button = gr.Button("Predict")
|
|
|
122 |
with gr.Blocks() as demo:
|
123 |
gr.Markdown("""
|
124 |
# 🧠 BrainAgeNeXt: Advancing Brain Age Modeling
|
125 |
+
Upload a preprocessed T1w MRI scan (.nii.gz), enter the age and sex of the subject, and get the brain age prediction.
|
126 |
|
127 |
The following preprocessing steps are required.
|
128 |
1. Skull-stripping using [SynthStrip](https://surfer.nmr.mgh.harvard.edu/docs/synthstrip/) with the `--no-csf` flag for optimal results.
|
129 |
2. N4 bias field correction using [ANTs](https://github.com/ANTsX/ANTs/wiki/N4BiasFieldCorrection).
|
130 |
3. Affine registration to the MNI 1mm isotropic template space.
|
131 |
+
|
132 |
+
BrainAgeNeXt has been trained and validated using over 11,000 T1w MRI acquired at 1.5, 3, and 7T. A 1mm isotropic resolution of the input image is preferred, but not required.
|
133 |
+
|
134 |
""")
|
135 |
|
136 |
with gr.Row():
|
137 |
with gr.Column(scale=1):
|
138 |
+
mri_input = gr.File(label="Upload a T1w MRI (NIfTI .nii.gz)")
|
139 |
age_input = gr.Number(label="Enter Age", value=30)
|
140 |
sex_input = gr.Radio(["Male", "Female"], label="Select Sex")
|
141 |
submit_button = gr.Button("Predict")
|