akarora93 commited on
Commit
6ed0497
·
verified ·
1 Parent(s): 10be9f9

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def predict_sales_forecast_batch():
63
  predicted_sales = [round(float(Product_Store_Sales_Total), 2) for Product_Store_Sales_Total in predicted_sales]
64
 
65
  # Create a dictionary of predictions with Product IDs as keys
66
- product_ids = input_data['Product_ID'].tolist() # Assuming 'id' is the Product ID column
67
  output_dict = dict(zip(product_ids, predicted_sales)) # Use actual prices
68
 
69
  # Return the predictions dictionary as a JSON response
 
63
  predicted_sales = [round(float(Product_Store_Sales_Total), 2) for Product_Store_Sales_Total in predicted_sales]
64
 
65
  # Create a dictionary of predictions with Product IDs as keys
66
+ product_ids = input_data['Product_Id'].tolist()
67
  output_dict = dict(zip(product_ids, predicted_sales)) # Use actual prices
68
 
69
  # Return the predictions dictionary as a JSON response