Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -150,12 +150,13 @@ with gr.Blocks() as demo:
|
|
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 |
brain_age_output = gr.Textbox(label="Output")
|
153 |
-
|
|
|
154 |
|
155 |
-
submit_button.click(
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
)
|
160 |
|
161 |
gr.Markdown("""
|
|
|
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 |
brain_age_output = gr.Textbox(label="Output")
|
153 |
+
|
154 |
+
submit_button.click(fn=predict_brain_age, inputs=[mri_input, age_input], outputs=[brain_age_output])
|
155 |
|
156 |
+
#submit_button.click(
|
157 |
+
# fn=predict_brain_age,
|
158 |
+
# inputs=[mri_input, age_input], #sex_input
|
159 |
+
# outputs=[brain_age_output, bad_output]
|
160 |
)
|
161 |
|
162 |
gr.Markdown("""
|