Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -78,7 +78,8 @@ def forecast_sales_batch():
|
|
| 78 |
forcasted_sales = model.predict(input_data).tolist()
|
| 79 |
|
| 80 |
# Calculate actual prices
|
| 81 |
-
forcasted_sales = [round(float(forcasted_sales), 2)]
|
|
|
|
| 82 |
|
| 83 |
# Create a dictionary of predictions with product IDs as keys
|
| 84 |
product_ids = input_data['id'].tolist() # Assuming 'id' is the product ID column
|
|
|
|
| 78 |
forcasted_sales = model.predict(input_data).tolist()
|
| 79 |
|
| 80 |
# Calculate actual prices
|
| 81 |
+
forcasted_sales = [round(float(forcasted_sales), 2) for sales in forcasted_sales]
|
| 82 |
+
#round(float(np.exp(log_price)), 2) for log_price in predicted_log_prices
|
| 83 |
|
| 84 |
# Create a dictionary of predictions with product IDs as keys
|
| 85 |
product_ids = input_data['id'].tolist() # Assuming 'id' is the product ID column
|