Upload folder using huggingface_hub
Browse files
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['
|
| 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)
|