tby4rr commited on
Commit
cbb8192
·
verified ·
1 Parent(s): 4c83819

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- 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,
 
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,