Spaces:
Running
Running
update get_adjusted_bmi
Browse files
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
|
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):
|