Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -147,11 +147,10 @@ with gr.Blocks() as demo:
|
|
147 |
submit_button = gr.Button("Predict")
|
148 |
|
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 |
submit_button.click(
|
157 |
fn=predict_brain_age,
|
|
|
147 |
submit_button = gr.Button("Predict")
|
148 |
|
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 |
+
brain_age_output = gr.Textbox(label="Output")
|
153 |
+
submit_button.click(fn=predict_brain_age, inputs=[mri_input, age_input], outputs=[brain_age_output])
|
|
|
154 |
|
155 |
submit_button.click(
|
156 |
fn=predict_brain_age,
|