Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ loaded_model = pickle.load(open("cdc_diabetes_health_indicators.pkl", 'rb'))
|
|
15 |
explainer = shap.Explainer(loaded_model) # PLEASE DO NOT CHANGE THIS.
|
16 |
|
17 |
# Create the main function for server
|
18 |
-
|
19 |
new_row = pd.DataFrame.from_dict({
|
20 |
'HighBP':HighBP,'HighChol':HighChol,'CholCheck':CholCheck,
|
21 |
'BMI':BMI, 'Smoker':Smoker,'Stroke':Stroke,'HeartDiseaseorAttack':HeartDiseaseorAttack,
|
|
|
15 |
explainer = shap.Explainer(loaded_model) # PLEASE DO NOT CHANGE THIS.
|
16 |
|
17 |
# Create the main function for server
|
18 |
+
def main_func(HighBP, HighChol, CholCheck, BMI, Smoker, Stroke, HeartDiseaseorAttack, PhysActivity, Fruits, Veggies, HvyAlcoholConsump, AnyHealthcare, NoDocbcCost, GenHlth, MentHlth, PhysHealth, DiffWalk, Sex, Age, Education, Income):
|
19 |
new_row = pd.DataFrame.from_dict({
|
20 |
'HighBP':HighBP,'HighChol':HighChol,'CholCheck':CholCheck,
|
21 |
'BMI':BMI, 'Smoker':Smoker,'Stroke':Stroke,'HeartDiseaseorAttack':HeartDiseaseorAttack,
|