Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,21 +50,21 @@ st.title("BMI Calculator")
|
|
50 |
if (True==True):
|
51 |
st.write("SMART on FHIR connection successful!")
|
52 |
st.write("Loading patient data...")
|
53 |
-
height, weight = get_patient_data(smart)
|
54 |
-
st.write("Patient height:", height, "cm")
|
55 |
-
st.write("Patient weight:", weight, "kg")
|
56 |
-
st.write("Calculating BMI...")
|
57 |
-
bmi = bmi_calculator(height, weight)
|
58 |
-
st.write("Your BMI is:", round(bmi, 2))
|
59 |
|
60 |
-
if bmi < 18.5:
|
61 |
-
|
62 |
-
elif bmi >= 18.5 and bmi < 25:
|
63 |
-
|
64 |
-
elif bmi >= 25 and bmi < 30:
|
65 |
-
|
66 |
-
else:
|
67 |
-
|
68 |
else:
|
69 |
st.write("SMART on FHIR connection failed. Please check your app settings.")
|
70 |
|
|
|
50 |
if (True==True):
|
51 |
st.write("SMART on FHIR connection successful!")
|
52 |
st.write("Loading patient data...")
|
53 |
+
#height, weight = get_patient_data(smart)
|
54 |
+
#st.write("Patient height:", height, "cm")
|
55 |
+
#st.write("Patient weight:", weight, "kg")
|
56 |
+
#st.write("Calculating BMI...")
|
57 |
+
#bmi = bmi_calculator(height, weight)
|
58 |
+
#st.write("Your BMI is:", round(bmi, 2))
|
59 |
|
60 |
+
#if bmi < 18.5:
|
61 |
+
# st.write("You are underweight.")
|
62 |
+
#elif bmi >= 18.5 and bmi < 25:
|
63 |
+
# st.write("You have a healthy weight.")
|
64 |
+
#elif bmi >= 25 and bmi < 30:
|
65 |
+
# st.write("You are overweight.")
|
66 |
+
#else:
|
67 |
+
# st.write("You are obese.")
|
68 |
else:
|
69 |
st.write("SMART on FHIR connection failed. Please check your app settings.")
|
70 |
|