Update app.py
Browse files
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_
|
61 |
-
Height_
|
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_
|
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 |
|
|
|
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 |
|