Quantum9999 commited on
Commit
8b40cb4
·
verified ·
1 Parent(s): 7b066a8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def predict_sales_batch():
83
  preds_rounded = [round(float(p), 2) for p in preds]
84
 
85
  # Map property/product ID to prediction
86
- ids = input_df['id'].tolist() # Ensure 'id' column exists in your batch data
87
  results = dict(zip(ids, preds_rounded))
88
 
89
  return jsonify(results)
 
83
  preds_rounded = [round(float(p), 2) for p in preds]
84
 
85
  # Map property/product ID to prediction
86
+ ids = input_df['Product_Id'].tolist() # Ensure 'id' column exists in your batch data
87
  results = dict(zip(ids, preds_rounded))
88
 
89
  return jsonify(results)