Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -71,18 +71,18 @@ def predict_churn():
|
|
| 71 |
try:
|
| 72 |
customer_data = request.get_json()
|
| 73 |
sample = {
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
|
| 87 |
|
| 88 |
input_data = pd.DataFrame([sample])
|
|
|
|
| 71 |
try:
|
| 72 |
customer_data = request.get_json()
|
| 73 |
sample = {
|
| 74 |
+
|
| 75 |
+
'Partner': customer_data['Partner'],
|
| 76 |
+
'Dependents': customer_data['Dependents'],
|
| 77 |
+
'PhoneService': customer_data['PhoneService'],
|
| 78 |
+
'InternetService': customer_data['InternetService'],
|
| 79 |
+
'Contract': customer_data['Contract'],
|
| 80 |
+
'PaymentMethod': customer_data['PaymentMethod'],
|
| 81 |
+
'tenure': customer_data['tenure'],
|
| 82 |
+
'MonthlyCharges': customer_data['MonthlyCharges'],
|
| 83 |
+
'TotalCharges': customer_data['TotalCharges'],
|
| 84 |
+
'SeniorCitizen':customer_data['SeniorCitizen']
|
| 85 |
+
}
|
| 86 |
|
| 87 |
|
| 88 |
input_data = pd.DataFrame([sample])
|