pachteera commited on
Commit
b490245
·
1 Parent(s): f4b1942

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -57,8 +57,8 @@ def main():
57
  Fruit_Consumption = st.slider("Fruit Consumption", min_value=0, max_value=100)
58
  Green_Vegetables_Consumption = st.slider("Green Vegetables Consumption", min_value=0, max_value=100)
59
  FriedPotato_Consumption = st.slider("Fried Potato Consumption", min_value=0, max_value=100)
60
- Weight_(kg) == st.slider("Weight_(kg)", min_value=100, max_value=200 , value=150)
61
- Height_(cm) == st.slider("Height_(cm)", min_value=100, max_value=200 , value=150)
62
 
63
 
64
 
@@ -81,8 +81,8 @@ def main():
81
  "Fruit_Consumption": [Fruit_Consumption],
82
  "Green_Vegetables_Consumption": [Green_Vegetables_Consumption],
83
  "FriedPotato_Consumption": [FriedPotato_Consumption],
84
- "Weight_(kg)": [Weight_(kg)],
85
- "Height_(cm)": [Height_(cm)]}))
86
  result = 'Very Good' if result[0] == 1 else 'Poor'
87
  st.success('The predicted General Health is {}'.format(result))
88
 
 
57
  Fruit_Consumption = st.slider("Fruit Consumption", min_value=0, max_value=100)
58
  Green_Vegetables_Consumption = st.slider("Green Vegetables Consumption", min_value=0, max_value=100)
59
  FriedPotato_Consumption = st.slider("Fried Potato Consumption", min_value=0, max_value=100)
60
+ Weight_ == st.slider("Weight_(kg)", min_value=100, max_value=200)
61
+ Height_ == st.slider("Height_(cm)", min_value=100, max_value=200)
62
 
63
 
64
 
 
81
  "Fruit_Consumption": [Fruit_Consumption],
82
  "Green_Vegetables_Consumption": [Green_Vegetables_Consumption],
83
  "FriedPotato_Consumption": [FriedPotato_Consumption],
84
+ "Weight_(kg)": [Weight_],
85
+ "Height_(cm)": [Height_]}))
86
  result = 'Very Good' if result[0] == 1 else 'Poor'
87
  st.success('The predicted General Health is {}'.format(result))
88