Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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, "
|
| 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,
|