Update app.py
Browse files
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.
|
113 |
-
if row['Predicted T-score'] >= -2.
|
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 |
|