Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -22,14 +22,15 @@ def predict_sales():
|
|
| 22 |
# Extract relevant customer features from the input data. The order of the column names matters.
|
| 23 |
sample = {
|
| 24 |
'Product_Weight': data['Product_Weight'],
|
| 25 |
-
'Product_Sugar_Content': data['Product_Sugar_Content'],
|
| 26 |
'Product_Allocated_Area': data['Product_Allocated_Area'],
|
| 27 |
-
'Product_Type_Category': data['Product_Type_Category'],
|
| 28 |
'Product_MRP': data['Product_MRP'],
|
| 29 |
-
'
|
| 30 |
-
'
|
| 31 |
-
'
|
| 32 |
-
'
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
|
| 35 |
# Convert the extracted data into a DataFrame and preprocess it
|
|
|
|
| 22 |
# Extract relevant customer features from the input data. The order of the column names matters.
|
| 23 |
sample = {
|
| 24 |
'Product_Weight': data['Product_Weight'],
|
|
|
|
| 25 |
'Product_Allocated_Area': data['Product_Allocated_Area'],
|
|
|
|
| 26 |
'Product_MRP': data['Product_MRP'],
|
| 27 |
+
'Store_Establishment_Year': data['Store_Age_Years'],
|
| 28 |
+
'Product_Sugar_Content_Mapping': data['Product_Sugar_Content'],
|
| 29 |
+
'Store_Size_Mapping': data['Store_Size'],
|
| 30 |
+
'Store_Location_City_Type_Mapping': data['Store_Location_City_Type'],
|
| 31 |
+
'Product_Type_Mapping': data['Product_Type_Category'],
|
| 32 |
+
'Store_Id_Mapping': data['Store_Id'],
|
| 33 |
+
'Store_Type_Mapping': data['Store_Type'],
|
| 34 |
}
|
| 35 |
|
| 36 |
# Convert the extracted data into a DataFrame and preprocess it
|