Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -22,8 +22,8 @@ def home():
|
|
| 22 |
return "Welcome to the SuperKart Sales Forecast API!"
|
| 23 |
|
| 24 |
# Define an endpoint for single product sales prediction (POST request)
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
| 28 |
def predict_product_sale():
|
| 29 |
"""
|
|
@@ -67,7 +67,8 @@ def predict_product_sale():
|
|
| 67 |
|
| 68 |
|
| 69 |
# Define an endpoint for batch prediction (POST request)
|
| 70 |
-
|
|
|
|
| 71 |
|
| 72 |
|
| 73 |
def predict_product_sale_batch():
|
|
|
|
| 22 |
return "Welcome to the SuperKart Sales Forecast API!"
|
| 23 |
|
| 24 |
# Define an endpoint for single product sales prediction (POST request)
|
| 25 |
+
#@SK_Sales_Forecast_api.post('/salespredict')
|
| 26 |
+
@SK_Sales_Forecast_api.route('/salespredict', methods=['GET', 'POST'])
|
| 27 |
|
| 28 |
def predict_product_sale():
|
| 29 |
"""
|
|
|
|
| 67 |
|
| 68 |
|
| 69 |
# Define an endpoint for batch prediction (POST request)
|
| 70 |
+
#@SK_Sales_Forecast_api.post('/salespredictbatch')
|
| 71 |
+
@SK_Sales_Forecast_api.route('/salespredictbatch', methods=['GET', 'POST'])
|
| 72 |
|
| 73 |
|
| 74 |
def predict_product_sale_batch():
|