Update app.py
Browse files
app.py
CHANGED
@@ -93,23 +93,23 @@ def map_income(value):
|
|
93 |
# Create the main function for server
|
94 |
def main_func(HighBP, HighChol, CholCheck, BMI, Smoker, Stroke, HeartDiseaseorAttack, PhysActivity, Fruits, Veggies, HvyAlcoholConsump, AnyHealthcare, NoDocbcCost, GenHlth, MentHlth, PhysHlth, DiffWalk, Sex, Age, Education, Income):
|
95 |
new_row = pd.DataFrame.from_dict({
|
96 |
-
'HighBP':
|
97 |
-
'HighChol':
|
98 |
-
'CholCheck':
|
99 |
'BMI': BMI,
|
100 |
-
'Smoker':
|
101 |
-
'Stroke':
|
102 |
-
'HeartDiseaseorAttack':
|
103 |
-
'PhysActivity':
|
104 |
-
'Fruits':
|
105 |
-
'Veggies':
|
106 |
-
'HvyAlcoholConsump':
|
107 |
-
'AnyHealthcare':
|
108 |
-
'NoDocbcCost':
|
109 |
'GenHlth': GenHlth,
|
110 |
'MentHlth': MentHlth,
|
111 |
'PhysHlth': PhysHlth,
|
112 |
-
'DiffWalk':
|
113 |
'Sex': map_gender(Sex),
|
114 |
'Age': Age,
|
115 |
'Education': map_education(Education),
|
|
|
93 |
# Create the main function for server
|
94 |
def main_func(HighBP, HighChol, CholCheck, BMI, Smoker, Stroke, HeartDiseaseorAttack, PhysActivity, Fruits, Veggies, HvyAlcoholConsump, AnyHealthcare, NoDocbcCost, GenHlth, MentHlth, PhysHlth, DiffWalk, Sex, Age, Education, Income):
|
95 |
new_row = pd.DataFrame.from_dict({
|
96 |
+
'HighBP': map_HighBP(HighBP),
|
97 |
+
'HighChol': map_HighChol(HighChol),
|
98 |
+
'CholCheck': map_CholCheck(CholCheck),
|
99 |
'BMI': BMI,
|
100 |
+
'Smoker': map_Smoker(Smoker),
|
101 |
+
'Stroke': map_Stroke(Stroke),
|
102 |
+
'HeartDiseaseorAttack': map_HeartDiseaseorAttack(HeartDiseaseorAttack),
|
103 |
+
'PhysActivity': map_PhysActivity(PhysActivity),
|
104 |
+
'Fruits': map_Fruits(Fruits),
|
105 |
+
'Veggies': map_Veggies(Veggies),
|
106 |
+
'HvyAlcoholConsump': map_HvyAlcoholConsump(HvyAlcoholConsump),
|
107 |
+
'AnyHealthcare': map_AnyHealthcare(AnyHealthcare),
|
108 |
+
'NoDocbcCost': map_NoDocbcCost(NoDocbcCost),
|
109 |
'GenHlth': GenHlth,
|
110 |
'MentHlth': MentHlth,
|
111 |
'PhysHlth': PhysHlth,
|
112 |
+
'DiffWalk': map_DiffWalk(DiffWalk),
|
113 |
'Sex': map_gender(Sex),
|
114 |
'Age': Age,
|
115 |
'Education': map_education(Education),
|