A commited on
Upload folder using huggingface_hub
Browse files
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['
|
| 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
|