Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -144,7 +144,9 @@ 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 |
-
mri_input = gr.File(label="Upload a T1w MRI (NIfTI .nii.gz)")
|
|
|
|
|
|
|
| 148 |
submit_button = gr.Button("Predict")
|
| 149 |
|
| 150 |
with gr.Column(scale=2):
|
|
@@ -153,7 +155,7 @@ with gr.Blocks() as demo:
|
|
| 153 |
brain_age_output = gr.Textbox(label="Predicted Brain Age", interactive=False)
|
| 154 |
bad_output = gr.Textbox(label="Brain Age Difference", interactive=False)
|
| 155 |
|
| 156 |
-
submit_button.click(fn=predict_brain_age, inputs=[
|
| 157 |
|
| 158 |
gr.Markdown("""
|
| 159 |
**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 |
+
path_input = gr.Textbox(label="Path to .nii.gz file")
|
| 149 |
+
|
| 150 |
submit_button = gr.Button("Predict")
|
| 151 |
|
| 152 |
with gr.Column(scale=2):
|
|
|
|
| 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=[path_input, age_input, sex_input], outputs=[brain_age_output, bad_output])
|
| 159 |
|
| 160 |
gr.Markdown("""
|
| 161 |
**Disclaimer:** This is a research tool and is not intended for clinical use.
|