Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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(
|
| 88 |
|
| 89 |
-
# Calculate
|
| 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
|