Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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['
|
| 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
|