Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -73,11 +73,11 @@ with st.form("fitness_form"):
|
|
| 73 |
# -------------------------
|
| 74 |
if submit:
|
| 75 |
# Validation
|
| 76 |
-
if not name.strip():
|
| 77 |
st.error("Please enter your name.")
|
| 78 |
elif height <= 0 or weight <= 0:
|
| 79 |
st.error("Height and Weight must be positive values.")
|
| 80 |
-
elif not
|
| 81 |
st.error("Please select at least one equipment option.")
|
| 82 |
else:
|
| 83 |
# Calculate BMI
|
|
|
|
| 73 |
# -------------------------
|
| 74 |
if submit:
|
| 75 |
# Validation
|
| 76 |
+
if not full name.strip():
|
| 77 |
st.error("Please enter your name.")
|
| 78 |
elif height <= 0 or weight <= 0:
|
| 79 |
st.error("Height and Weight must be positive values.")
|
| 80 |
+
elif not availabelequipment:
|
| 81 |
st.error("Please select at least one equipment option.")
|
| 82 |
else:
|
| 83 |
# Calculate BMI
|