A commited on
Commit
635df8a
·
verified ·
1 Parent(s): 11f4338

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def predict_sales_batch():
89
  predicted_prices = [round(float(np.exp(log_price)), 2) for log_price in predicted_log_prices]
90
 
91
  # Create a dictionary of predictions with property IDs as keys
92
- property_ids = input_data['id'].tolist() # Assuming 'id' is the property ID column
93
  output_dict = dict(zip(property_ids, predicted_prices)) # Use actual prices
94
 
95
  # Return the predictions dictionary as a JSON response
 
89
  predicted_prices = [round(float(np.exp(log_price)), 2) for log_price in predicted_log_prices]
90
 
91
  # Create a dictionary of predictions with property IDs as keys
92
+ property_ids = input_data['Store_Id'].tolist() # Assuming 'id' is the property ID column
93
  output_dict = dict(zip(property_ids, predicted_prices)) # Use actual prices
94
 
95
  # Return the predictions dictionary as a JSON response