DrishVij commited on
Commit
f00cbe8
·
verified ·
1 Parent(s): 9c79bc6

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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