Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,8 @@ with gr.Blocks() as demo:
|
|
142 |
|
143 |
with gr.Row():
|
144 |
with gr.Column(scale=1):
|
145 |
-
mri_input = gr.File(label="Upload a T1w MRI (NIfTI .nii.gz)")
|
|
|
146 |
age_input = gr.Number(label="Enter Age", value=50)
|
147 |
sex_input = gr.Radio(["Male", "Female"], label="Select Sex")
|
148 |
submit_button = gr.Button("Predict")
|
@@ -155,7 +156,7 @@ with gr.Blocks() as demo:
|
|
155 |
|
156 |
submit_button.click(
|
157 |
fn=predict_brain_age,
|
158 |
-
|
159 |
outputs=[brain_age_output, bad_output]
|
160 |
)
|
161 |
|
|
|
142 |
|
143 |
with gr.Row():
|
144 |
with gr.Column(scale=1):
|
145 |
+
#mri_input = gr.File(label="Upload a T1w MRI (NIfTI .nii.gz)")
|
146 |
+
mri_input = gr.File(label="Upload a T1w MRI (NIfTI .nii.gz)", file_types=[".nii.gz"], type="filepath")
|
147 |
age_input = gr.Number(label="Enter Age", value=50)
|
148 |
sex_input = gr.Radio(["Male", "Female"], label="Select Sex")
|
149 |
submit_button = gr.Button("Predict")
|
|
|
156 |
|
157 |
submit_button.click(
|
158 |
fn=predict_brain_age,
|
159 |
+
inputs=[mri_input, age_input], #sex_input
|
160 |
outputs=[brain_age_output, bad_output]
|
161 |
)
|
162 |
|