Update app.py
Browse files
app.py
CHANGED
@@ -48,21 +48,21 @@ def main():
|
|
48 |
with st.form("questionaire"):
|
49 |
BMI = st.slider("BMI", min_value=10, max_value=100)
|
50 |
Smoking = st.selectbox("Smoking", unique_Smoking)
|
51 |
-
AlcoholDrinking = ("AlcoholDrinking", unique_AlcoholDrinking)
|
52 |
-
Stroke = ("Stroke", unique_Stroke)
|
53 |
PhysicalHealth = st.slider("PhysicalHealth", min_value=0, max_value=50)
|
54 |
MentalHealth = st.slider("MentalHealth", min_value=0, max_value=50)
|
55 |
-
DiffWalking = ("DiffWalking", unique_DiffWalking)
|
56 |
-
Sex = ("Sex", unique_Sex)
|
57 |
-
AgeCategory = ("AgeCategory_new", unique_AgeCategory)
|
58 |
-
Race = ("Race", unique_Race)
|
59 |
-
Diabetic = ("Diabetic", unique_Diabetic)
|
60 |
-
PhysicalActivity = ("PhysicalActivity", unique_PhysicalActivity)
|
61 |
-
GenHealth = ("GenHealth", unique_GenHealth)
|
62 |
SleepTime = st.slider("SleepTime", min_value=0, max_value=24)
|
63 |
-
Asthma = ("Asthma", unique_Asthma)
|
64 |
-
KidneyDisease = ("KidneyDisease", unique_KidneyDisease)
|
65 |
-
SkinCancer = ("SkinCancer", unique_SkinCancer)
|
66 |
|
67 |
clicked = st.form_submit_button("Predict HeartDisease")
|
68 |
if clicked:
|
|
|
48 |
with st.form("questionaire"):
|
49 |
BMI = st.slider("BMI", min_value=10, max_value=100)
|
50 |
Smoking = st.selectbox("Smoking", unique_Smoking)
|
51 |
+
AlcoholDrinking = st.selectbox("AlcoholDrinking", unique_AlcoholDrinking)
|
52 |
+
Stroke = st.selectbox("Stroke", unique_Stroke)
|
53 |
PhysicalHealth = st.slider("PhysicalHealth", min_value=0, max_value=50)
|
54 |
MentalHealth = st.slider("MentalHealth", min_value=0, max_value=50)
|
55 |
+
DiffWalking = st.selectbox("DiffWalking", unique_DiffWalking)
|
56 |
+
Sex = st.selectbox("Sex", unique_Sex)
|
57 |
+
AgeCategory = st.selectbox("AgeCategory_new", unique_AgeCategory)
|
58 |
+
Race = st.selectbox("Race", unique_Race)
|
59 |
+
Diabetic = st.selectbox("Diabetic", unique_Diabetic)
|
60 |
+
PhysicalActivity = st.selectbox("PhysicalActivity", unique_PhysicalActivity)
|
61 |
+
GenHealth = st.selectbox("GenHealth", unique_GenHealth)
|
62 |
SleepTime = st.slider("SleepTime", min_value=0, max_value=24)
|
63 |
+
Asthma = st.selectbox("Asthma", unique_Asthma)
|
64 |
+
KidneyDisease = st.selectbox("KidneyDisease", unique_KidneyDisease)
|
65 |
+
SkinCancer = st.selectbox("SkinCancer", unique_SkinCancer)
|
66 |
|
67 |
clicked = st.form_submit_button("Predict HeartDisease")
|
68 |
if clicked:
|