Spaces:
Sleeping
Sleeping
Minor change in app.py
Browse files
app.py
CHANGED
@@ -76,5 +76,5 @@ if img_file_buffer is not None:
|
|
76 |
st.image(detected_image, caption="Detected Face")
|
77 |
|
78 |
embeddings = extract_features(img)
|
79 |
-
bmi = round(lr.predict([embeddings])[0], 2)
|
80 |
st.write(f"Your BMI is {bmi}")
|
|
|
76 |
st.image(detected_image, caption="Detected Face")
|
77 |
|
78 |
embeddings = extract_features(img)
|
79 |
+
bmi = round(lr.predict([embeddings])[0], 2) - 4 # Because the model is consistently over predicting the BMI values
|
80 |
st.write(f"Your BMI is {bmi}")
|