Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -21,6 +21,7 @@ def predict_churn ():
|
|
| 21 |
|
| 22 |
# Extract relevant customer features from the input data
|
| 23 |
sample = {
|
|
|
|
| 24 |
'SeniorCitizen' : customer_data ['SeniorCitizen'],
|
| 25 |
'tenure' : customer_data ['tenure'],
|
| 26 |
'MonthlyCharges' : customer_data ['MonthlyCharges'],
|
|
@@ -68,4 +69,4 @@ def predict_churn_batch ():
|
|
| 68 |
|
| 69 |
# Run the Flask app in debug mode
|
| 70 |
if __name__ == '__main__':
|
| 71 |
-
|
|
|
|
| 21 |
|
| 22 |
# Extract relevant customer features from the input data
|
| 23 |
sample = {
|
| 24 |
+
'customerID' : customer_data ['customerID'],
|
| 25 |
'SeniorCitizen' : customer_data ['SeniorCitizen'],
|
| 26 |
'tenure' : customer_data ['tenure'],
|
| 27 |
'MonthlyCharges' : customer_data ['MonthlyCharges'],
|
|
|
|
| 69 |
|
| 70 |
# Run the Flask app in debug mode
|
| 71 |
if __name__ == '__main__':
|
| 72 |
+
cust_churn_predictor_api.run (debug=True)
|