Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def predict_sales_batch():
|
|
| 59 |
predicted_sales = [round(float(sales),2) for sales in model.predict(input_data).tolist()]
|
| 60 |
|
| 61 |
# Create a dictionary of predictions with Product ID and Predicted sales
|
| 62 |
-
#product_id = input_data['
|
| 63 |
#output_dict = dict(zip(product_id, predicted_sales)) # Sales value
|
| 64 |
output_dict = dict(predicted_sales) # Sales value
|
| 65 |
|
|
|
|
| 59 |
predicted_sales = [round(float(sales),2) for sales in model.predict(input_data).tolist()]
|
| 60 |
|
| 61 |
# Create a dictionary of predictions with Product ID and Predicted sales
|
| 62 |
+
#product_id = input_data['Product_ID'].tolist() # Assuming id as the key or product id
|
| 63 |
#output_dict = dict(zip(product_id, predicted_sales)) # Sales value
|
| 64 |
output_dict = dict(predicted_sales) # Sales value
|
| 65 |
|