Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def predict_capacity():
|
|
| 73 |
return jsonify({'error': str(e)}), 400
|
| 74 |
|
| 75 |
# Define an endpoint to predict churn for a batch of customers
|
| 76 |
-
@app.post('/predict_batch')
|
| 77 |
def predict_capacity_batch():
|
| 78 |
"""
|
| 79 |
Expects JSON input with a list of store capacity data.
|
|
|
|
| 73 |
return jsonify({'error': str(e)}), 400
|
| 74 |
|
| 75 |
# Define an endpoint to predict churn for a batch of customers
|
| 76 |
+
@app.post('/v1/predict_batch')
|
| 77 |
def predict_capacity_batch():
|
| 78 |
"""
|
| 79 |
Expects JSON input with a list of store capacity data.
|