Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def home():
|
|
14 |
return "Welcome to the Telecom Customer Churn Prediction API"
|
15 |
|
16 |
# Define an endpoint to predict churn for a single customer
|
17 |
-
@app.post('/v1/
|
18 |
def predict_churn():
|
19 |
# Get JSON data from the request
|
20 |
customer_data = request.get_json()
|
|
|
14 |
return "Welcome to the Telecom Customer Churn Prediction API"
|
15 |
|
16 |
# Define an endpoint to predict churn for a single customer
|
17 |
+
@app.post('/v1/customer')
|
18 |
def predict_churn():
|
19 |
# Get JSON data from the request
|
20 |
customer_data = request.get_json()
|