Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -32,16 +32,16 @@ def predict_sales():
|
|
| 32 |
|
| 33 |
# Extract relevant features from the JSON data
|
| 34 |
sample = {
|
| 35 |
-
'
|
| 36 |
-
'
|
| 37 |
-
'
|
| 38 |
-
'
|
| 39 |
-
'
|
| 40 |
-
'
|
| 41 |
# 'store_id': data['Store_Id'],
|
| 42 |
-
'
|
| 43 |
-
'
|
| 44 |
-
'
|
| 45 |
}
|
| 46 |
|
| 47 |
# Convert the extracted data into a Pandas DataFrame
|
|
|
|
| 32 |
|
| 33 |
# Extract relevant features from the JSON data
|
| 34 |
sample = {
|
| 35 |
+
'Product_Type': data['Product_Type'],
|
| 36 |
+
'Product_Sugar_Content': data['Product_Sugar_Content'],
|
| 37 |
+
'Store_Establishment_Year': data['Store_Establishment_Year'],
|
| 38 |
+
'Store_Size': data['Store_Size'],
|
| 39 |
+
'Store_Location_City_Type': data['Store_Location_City_Type'],
|
| 40 |
+
'Store_Type': data['Store_Type'],
|
| 41 |
# 'store_id': data['Store_Id'],
|
| 42 |
+
'Product_Weight': data['Product_Weight'],
|
| 43 |
+
'Product_Allocated_Area': data['Product_Allocated_Area'],
|
| 44 |
+
'Product_MRP': data['Product_MRP']
|
| 45 |
}
|
| 46 |
|
| 47 |
# Convert the extracted data into a Pandas DataFrame
|