madhukarmehta commited on
Commit
33deada
·
verified ·
1 Parent(s): 68669af

Upload folder using huggingface_hub

Browse files
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 property prediction (POST request)
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:02c6fe118adeefb9fee9dcd9c83683f864668665cb5acc7942161cd2f9f0ae65
3
- size 210308
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e1ac0ce8d054fc96039088fff928e2c620e21524fcf51c547b88074ac55210b
3
+ size 928688