RPeltier commited on
Commit
727674a
·
verified ·
1 Parent(s): c06b0a9

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- 'Store_Size': data['Store_Size'],
30
- 'Store_Location_City_Type': data['Store_Location_City_Type'],
31
- 'Store_Type': data['Store_Type'],
32
- 'Store_Age_Years': data['Store_Age_Years'],
 
 
 
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