babloo555777 commited on
Commit
42aa65f
·
verified ·
1 Parent(s): 8714e8f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -16,15 +16,15 @@ def predict_sales():
16
  sales_data = request.get_json()
17
 
18
  sample = {
19
- 'Product_Weight': sales_data['Product_Weight'],
20
- 'Product_Sugar_Content': sales_data['Product_Sugar_Content'],
21
- 'Product_Allocated_Area': sales_data['Product_Allocated_Area'],
22
- 'Product_Type': sales_data['Product_Type'],
23
- 'Product_MRP': sales_data['Product_MRP'],
24
- 'Store_Establishment_Year': sales_data['Store_Establishment_Year'],
25
- 'Store_Size': sales_data['Store_Size'],
26
- 'Store_Location_City_Type': sales_data['Store_Location_City_Type'],
27
- 'Store_Type': sales_data['Store_Type'],
28
  }
29
 
30
  input_data = pd.DataFrame([sample])
 
16
  sales_data = request.get_json()
17
 
18
  sample = {
19
+ "Product_Weight": sales_data['Product_Weight'],
20
+ "Product_Sugar_Content": sales_data['Product_Sugar_Content'],
21
+ "Product_Allocated_Area": sales_data['Product_Allocated_Area'],
22
+ "Product_Type": sales_data['Product_Type'],
23
+ "Product_MRP": sales_data['Product_MRP'],
24
+ "Store_Establishment_Year": sales_data['Store_Establishment_Year'],
25
+ "Store_Size": sales_data['Store_Size'],
26
+ "Store_Location_City_Type": sales_data['Store_Location_City_Type'],
27
+ "Store_Type": sales_data['Store_Type']
28
  }
29
 
30
  input_data = pd.DataFrame([sample])