Upload folder using huggingface_hub
Browse files- app.py +2 -2
- superkart_model_prediction_model_v1_0.joblib +2 -2
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def home():
|
|
| 19 |
"""
|
| 20 |
return "Welcome to the SuperKart Forecast Predictor Application API!"
|
| 21 |
|
| 22 |
-
# Define an endpoint for single
|
| 23 |
@superkart_forecast_predictor_api.post('/v1/superkart')
|
| 24 |
def predict_superkart_sales():
|
| 25 |
"""
|
|
@@ -72,7 +72,7 @@ def predict_superkart_sales_batch():
|
|
| 72 |
input_data = pd.read_csv(file)
|
| 73 |
|
| 74 |
# Make predictions for all properties in the DataFrame
|
| 75 |
-
predicted_sales = model.predict(input_data).tolist()
|
| 76 |
|
| 77 |
# Create a dictionary of predictions with property IDs as keys
|
| 78 |
product_Ids = input_data['Product_Id'].tolist() # Assuming 'id' is the property ID column
|
|
|
|
| 19 |
"""
|
| 20 |
return "Welcome to the SuperKart Forecast Predictor Application API!"
|
| 21 |
|
| 22 |
+
# Define an endpoint for single prediction (POST request)
|
| 23 |
@superkart_forecast_predictor_api.post('/v1/superkart')
|
| 24 |
def predict_superkart_sales():
|
| 25 |
"""
|
|
|
|
| 72 |
input_data = pd.read_csv(file)
|
| 73 |
|
| 74 |
# Make predictions for all properties in the DataFrame
|
| 75 |
+
predicted_sales = model.predict(input_data.drop('Product_Id',axis=1)).tolist()
|
| 76 |
|
| 77 |
# Create a dictionary of predictions with property IDs as keys
|
| 78 |
product_Ids = input_data['Product_Id'].tolist() # Assuming 'id' is the property ID column
|
superkart_model_prediction_model_v1_0.joblib
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e1ac0ce8d054fc96039088fff928e2c620e21524fcf51c547b88074ac55210b
|
| 3 |
+
size 928688
|