Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -149,12 +149,12 @@ with gr.Blocks() as demo:
|
|
149 |
with gr.Column(scale=2):
|
150 |
brain_age_output = gr.Textbox(label="Predicted Brain Age", interactive=False)
|
151 |
bad_output = gr.HTML(label="Brain Age Difference") # Use gr.HTML for colored text
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
|
159 |
gr.Markdown("""
|
160 |
**Disclaimer:** This is a research tool and is not intended for clinical use.
|
|
|
149 |
with gr.Column(scale=2):
|
150 |
brain_age_output = gr.Textbox(label="Predicted Brain Age", interactive=False)
|
151 |
bad_output = gr.HTML(label="Brain Age Difference") # Use gr.HTML for colored text
|
152 |
+
|
153 |
+
submit_button.click(
|
154 |
+
fn=predict_brain_age,
|
155 |
+
inputs=[mri_input, age_input], #sex_input
|
156 |
+
outputs=[brain_age_output, bad_output]
|
157 |
+
)
|
158 |
|
159 |
gr.Markdown("""
|
160 |
**Disclaimer:** This is a research tool and is not intended for clinical use.
|