Akki2228 commited on
Commit
b562b6b
·
verified ·
1 Parent(s): 51d2b7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def predict_churn(age, gender, tenure, usage, support, delay,
14
  # Convert categorical to numeric (must match training!)
15
  gender_map = {"Male": 0, "Female": 1}
16
  sub_map = {"Basic": 0, "Standard": 1, "Premium": 2}
17
- contract_map = {"Monthly": 0, "Quarterly": 1, "Yearly": 2}
18
 
19
  input_data = np.array([[
20
  age,
 
14
  # Convert categorical to numeric (must match training!)
15
  gender_map = {"Male": 0, "Female": 1}
16
  sub_map = {"Basic": 0, "Standard": 1, "Premium": 2}
17
+ contract_map = {"Monthly": 0, "Quarterly": 1, "Annual": 2}
18
 
19
  input_data = np.array([[
20
  age,