savitha7 commited on
Commit
c51946e
1 Parent(s): 826be80

update get_adjusted_bmi

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -126,10 +126,10 @@ def get_adjusted_bmi(weight_category, finer_range):
126
  print(category_ranges,'category_ranges')
127
  for range_label, (low, high, mid) in category_ranges.items():
128
  print(range_label,'range_label')
129
- if "BMI <" in range_label or "BMI ≥" in range_label:
130
- return high if "BMI <" in range_label else low
131
- elif range_label == bmi_mapp[finer_range]:
132
  return mid
 
 
133
  return None
134
 
135
  def calculate_weight(bmi, height_in_inches):
 
126
  print(category_ranges,'category_ranges')
127
  for range_label, (low, high, mid) in category_ranges.items():
128
  print(range_label,'range_label')
129
+ if range_label == bmi_mapp[finer_range]:
 
 
130
  return mid
131
+ """elif "BMI <" in range_label or "BMI ≥" in range_label:
132
+ return high if "BMI <" in range_label else low"""
133
  return None
134
 
135
  def calculate_weight(bmi, height_in_inches):