Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -63,10 +63,10 @@ def predict_kart_sales():
|
|
| 63 |
|
| 64 |
|
| 65 |
# Define an endpoint for batch prediction (POST request)
|
| 66 |
-
@super_kart_sales_predictor_api.post('/v1/
|
| 67 |
def predict_kart_sales_batch():
|
| 68 |
"""
|
| 69 |
-
This function handles POST requests to the '/v1/
|
| 70 |
It expects a CSV file containing property details for multiple properties
|
| 71 |
and returns the predicted sales as a dictionary in the JSON response.
|
| 72 |
"""
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
# Define an endpoint for batch prediction (POST request)
|
| 66 |
+
@super_kart_sales_predictor_api.post('/v1/kartBatch')
|
| 67 |
def predict_kart_sales_batch():
|
| 68 |
"""
|
| 69 |
+
This function handles POST requests to the '/v1/kartBatch' endpoint.
|
| 70 |
It expects a CSV file containing property details for multiple properties
|
| 71 |
and returns the predicted sales as a dictionary in the JSON response.
|
| 72 |
"""
|