FrancescoLR commited on
Commit
420b558
·
verified ·
1 Parent(s): d892c6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- # 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.
 
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.