Santhu976 commited on
Commit
4ee2a61
·
verified ·
1 Parent(s): 4f1263a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -78,8 +78,7 @@ def predict_sales_total_batch():
78
  # Create a dictionary of predictions with property IDs as keys
79
  product_store_ids = input_data[['Product_Id', 'Store_Id']].values.tolist()
80
  keys = [f"{pid}_{sid}" for pid, sid in product_store_ids]
81
- output_dict = dict(zip(keys, predicted_prices))
82
- output_dict = dict(zip(product_store_ids, predicted_prices)) # Use actual prices
83
 
84
  # Return the predictions dictionary as a JSON response
85
  return output_dict
 
78
  # Create a dictionary of predictions with property IDs as keys
79
  product_store_ids = input_data[['Product_Id', 'Store_Id']].values.tolist()
80
  keys = [f"{pid}_{sid}" for pid, sid in product_store_ids]
81
+ output_dict = dict(zip(keys, predicted_prices)) # Use actual prices
 
82
 
83
  # Return the predictions dictionary as a JSON response
84
  return output_dict