Rathapoom commited on
Commit
8f237ca
·
verified ·
1 Parent(s): cd20cc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,8 +109,8 @@ def main_with_plot_tscore_labels(file_path, bmd_patient, tscore_patient, C_avg_l
109
  for i, row in prediction_table.iterrows():
110
  st.write(f"Year {row['Year']}: BMD = {row['Predicted BMD']:.3f}, T-score = {row['Predicted T-score']:.2f}")
111
 
112
- # Check if the goal of BMD >= -2.4 is achieved
113
- if row['Predicted T-score'] >= -2.4:
114
  st.success(f"Goal achieved at year {row['Year']}")
115
  break
116
 
 
109
  for i, row in prediction_table.iterrows():
110
  st.write(f"Year {row['Year']}: BMD = {row['Predicted BMD']:.3f}, T-score = {row['Predicted T-score']:.2f}")
111
 
112
+ # Check if the goal of BMD >= -2.49 is achieved
113
+ if row['Predicted T-score'] >= -2.49:
114
  st.success(f"Goal achieved at year {row['Year']}")
115
  break
116