Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,10 +145,10 @@ with gr.Blocks() as demo:
|
|
| 145 |
age_input = gr.Number(label="Enter Age", value=50)
|
| 146 |
sex_input = gr.Radio(["Male", "Female"], label="Select Sex")
|
| 147 |
submit_button = gr.Button("Predict")
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
#
|
| 153 |
# submit_button.click(
|
| 154 |
# fn=predict_brain_age,
|
|
|
|
| 145 |
age_input = gr.Number(label="Enter Age", value=50)
|
| 146 |
sex_input = gr.Radio(["Male", "Female"], label="Select Sex")
|
| 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 |
# submit_button.click(
|
| 154 |
# fn=predict_brain_age,
|