SarojRauth commited on
Commit
6a91864
·
verified ·
1 Parent(s): dc251ca

Update app.py

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