Sreehitha-V commited on
Commit
be2222e
·
verified ·
1 Parent(s): df8d4bb

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -4
src/streamlit_app.py CHANGED
@@ -74,7 +74,7 @@ equipment = st.multiselect("AVAILABLE EQUIPMENT", equipment_options)
74
 
75
  st.markdown("---")
76
 
77
- # 5. Logical Requirements & Results
78
  if st.button("SUBMIT PROFILE"):
79
  # Validation: Ensures no empty name or zero/negative values
80
  if not name or height_cm <= 0 or weight_kg <= 0:
@@ -91,11 +91,10 @@ if st.button("SUBMIT PROFILE"):
91
  else: category = "Obese"
92
 
93
  # Success Banner
94
- st.success(f"PROFILE SUBMITTED SUCCESSFULLY! HELLO {name.upper()}")
95
 
96
- # Dashboard Result Display - Showing Formula beside the result
97
  st.markdown(f"### BMI: {bmi_val} | CATEGORY: {category.upper()}")
98
- st.markdown(f"**FORMULA:** $BMI = WEIGHT(KG) / HEIGHT(M)^2$")
99
 
100
  # JSON Output matching your requirement screenshot
101
  athlete_data = {
 
74
 
75
  st.markdown("---")
76
 
77
+ # 5. Logic and Results
78
  if st.button("SUBMIT PROFILE"):
79
  # Validation: Ensures no empty name or zero/negative values
80
  if not name or height_cm <= 0 or weight_kg <= 0:
 
91
  else: category = "Obese"
92
 
93
  # Success Banner
94
+ st.success("PROFILE SUBMITTED SUCCESSFULLY!")
95
 
96
+ # Dashboard Result Display
97
  st.markdown(f"### BMI: {bmi_val} | CATEGORY: {category.upper()}")
 
98
 
99
  # JSON Output matching your requirement screenshot
100
  athlete_data = {