Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -144,8 +144,7 @@ with gr.Blocks() as demo:
|
|
144 |
with gr.Column(scale=1):
|
145 |
age_input = gr.Number(label="Enter Age", value=50)
|
146 |
sex_input = gr.Radio(["Male", "Female"], label="Select Sex")
|
147 |
-
|
148 |
-
path_input = gr.Textbox(label="Path to .nii.gz file")
|
149 |
|
150 |
submit_button = gr.Button("Predict")
|
151 |
|
@@ -155,7 +154,7 @@ with gr.Blocks() as demo:
|
|
155 |
brain_age_output = gr.Textbox(label="Predicted Brain Age", interactive=False)
|
156 |
bad_output = gr.Textbox(label="Brain Age Difference", interactive=False)
|
157 |
|
158 |
-
submit_button.click(fn=predict_brain_age, inputs=[
|
159 |
|
160 |
gr.Markdown("""
|
161 |
**Disclaimer:** This is a research tool and is not intended for clinical use.
|
|
|
144 |
with gr.Column(scale=1):
|
145 |
age_input = gr.Number(label="Enter Age", value=50)
|
146 |
sex_input = gr.Radio(["Male", "Female"], label="Select Sex")
|
147 |
+
mri_input = gr.File(label="Upload a T1w MRI (NIfTI .nii.gz)")
|
|
|
148 |
|
149 |
submit_button = gr.Button("Predict")
|
150 |
|
|
|
154 |
brain_age_output = gr.Textbox(label="Predicted Brain Age", interactive=False)
|
155 |
bad_output = gr.Textbox(label="Brain Age Difference", interactive=False)
|
156 |
|
157 |
+
submit_button.click(fn=predict_brain_age, inputs=[mri_input, age_input, sex_input], outputs=[brain_age_output, bad_output])
|
158 |
|
159 |
gr.Markdown("""
|
160 |
**Disclaimer:** This is a research tool and is not intended for clinical use.
|