Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def generate_predictions(medication_data, site, bmd, mu, sigma):
|
|
41 |
predicted_bmd = calculate_bmd(baseline_bmd, percentage_increase)
|
42 |
predicted_tscore = calculate_tscore(predicted_bmd, mu, sigma)
|
43 |
|
44 |
-
predictions['Year'].append(year)
|
45 |
predictions['Predicted BMD'].append(round(predicted_bmd, 3))
|
46 |
predictions['Predicted T-score'].append(round(predicted_tscore, 1))
|
47 |
|
|
|
41 |
predicted_bmd = calculate_bmd(baseline_bmd, percentage_increase)
|
42 |
predicted_tscore = calculate_tscore(predicted_bmd, mu, sigma)
|
43 |
|
44 |
+
predictions['Year'].append(year.replace(" Year", "")) # Simplify year label
|
45 |
predictions['Predicted BMD'].append(round(predicted_bmd, 3))
|
46 |
predictions['Predicted T-score'].append(round(predicted_tscore, 1))
|
47 |
|