UholoDala commited on
Commit
e5afe31
1 Parent(s): 4a495b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,7 +36,8 @@ def predict(gender, SeniorCitizen, Partner, Dependents, Contract, tenure, Monthl
36
  'PaperlessBilling': [PaperlessBilling] if PaperlessBilling else ['No'], # Replace None with default value
37
  'PaymentMethod': [PaymentMethod] if PaymentMethod else ['Electronic check'], # Replace None with default value
38
  'MonthlyCharges': [MonthlyCharges] if MonthlyCharges else [0.0], # Replace None with default value
39
- 'TotalCharges': [TotalCharges] if TotalCharges else [0.0] # Replace None with default value})
 
40
 
41
  # Make predictions using the loaded logistic regression model
42
  #predict probabilities
 
36
  'PaperlessBilling': [PaperlessBilling] if PaperlessBilling else ['No'], # Replace None with default value
37
  'PaymentMethod': [PaymentMethod] if PaymentMethod else ['Electronic check'], # Replace None with default value
38
  'MonthlyCharges': [MonthlyCharges] if MonthlyCharges else [0.0], # Replace None with default value
39
+ 'TotalCharges': [TotalCharges] if TotalCharges else [0.0] # Replace None with default value
40
+ })
41
 
42
  # Make predictions using the loaded logistic regression model
43
  #predict probabilities