Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def home():
|
|
| 17 |
return "Welcome to the Lead Prediction System"
|
| 18 |
|
| 19 |
# Define an endpoint to predict churn for a single customer
|
| 20 |
-
@
|
| 21 |
def predict_sales():
|
| 22 |
# Get JSON data from the request
|
| 23 |
data = request.get_json()
|
|
|
|
| 17 |
return "Welcome to the Lead Prediction System"
|
| 18 |
|
| 19 |
# Define an endpoint to predict churn for a single customer
|
| 20 |
+
@learn_api.post('/v1/predict')
|
| 21 |
def predict_sales():
|
| 22 |
# Get JSON data from the request
|
| 23 |
data = request.get_json()
|