Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -116,8 +116,7 @@ def predict_brain_age(nifti_file, actual_age, sex):
|
|
116 |
bad_output_html = f"<span style='color:{color}; font-weight:bold;'>Brain Age Difference: {brain_age_difference:.2f} years</span>"
|
117 |
|
118 |
# Return formatted outputs
|
119 |
-
|
120 |
-
return f"Predicted Brain Age: {predicted_brain_age_corrected:.2f} years", f"Brain Age Difference: {brain_age_difference:.2f} years"
|
121 |
|
122 |
|
123 |
# 🔹 Gradio Interface Setup
|
|
|
116 |
bad_output_html = f"<span style='color:{color}; font-weight:bold;'>Brain Age Difference: {brain_age_difference:.2f} years</span>"
|
117 |
|
118 |
# Return formatted outputs
|
119 |
+
return f"Predicted Brain Age: {predicted_brain_age_corrected:.2f} years", bad_output_html
|
|
|
120 |
|
121 |
|
122 |
# 🔹 Gradio Interface Setup
|