Rathapoom commited on
Commit
f47c5bc
·
verified ·
1 Parent(s): 0943560

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def generate_predictions(medication_data, site, bmd, mu, sigma):
38
  if not pd.isna(row[year]):
39
  percentage_increase = row[year]
40
  # BMD calculated using initial BMD (from user input)
41
- predicted_bmd = bmd * (1 + percentage_increase / 100)
42
  predicted_tscore = calculate_tscore(predicted_bmd, mu, sigma)
43
 
44
  predictions['Year'].append(year.replace(" Year", "")) # Simplify year label
 
38
  if not pd.isna(row[year]):
39
  percentage_increase = row[year]
40
  # BMD calculated using initial BMD (from user input)
41
+ predicted_bmd = bmd * (1 + percentage_increase)
42
  predicted_tscore = calculate_tscore(predicted_bmd, mu, sigma)
43
 
44
  predictions['Year'].append(year.replace(" Year", "")) # Simplify year label