cheeka84 commited on
Commit
d718c46
·
verified ·
1 Parent(s): 429210b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,12 +81,12 @@ def sales_price_batch():
81
  input_data = input_data.drop(['Product_Id', 'Store_Id', 'Store_Establishment_Year'], axis=1)
82
 
83
  # Apply same transformations
84
- input_transformed = preprocessor.transform(input_data)
85
 
86
  # Make predictions for all properties in the DataFrame (get log_prices)
87
- predicted_sales = model.predict(input_transformed).tolist()
88
 
89
- # Calculate actual prices
90
  predicted_sales = round(float(predicted_sales), 2)
91
 
92
  # Create a dictionary of predictions with property IDs as keys
 
81
  input_data = input_data.drop(['Product_Id', 'Store_Id', 'Store_Establishment_Year'], axis=1)
82
 
83
  # Apply same transformations
84
+ #input_transformed = preprocessor.transform(input_data)
85
 
86
  # Make predictions for all properties in the DataFrame (get log_prices)
87
+ predicted_sales = model.predict(input_data).tolist()
88
 
89
+ # Calculate sales
90
  predicted_sales = round(float(predicted_sales), 2)
91
 
92
  # Create a dictionary of predictions with property IDs as keys