FrancescoLR commited on
Commit
df72c18
·
verified ·
1 Parent(s): 51a6403

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- #return f"Predicted Brain Age: {predicted_brain_age_corrected:.2f} years", bad_output_html
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