Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -32,14 +32,14 @@ def predict_product_sales():
|
|
| 32 |
|
| 33 |
# Extract relevant features from the JSON data
|
| 34 |
sample = {
|
| 35 |
-
'
|
| 36 |
-
'
|
| 37 |
-
'
|
| 38 |
-
'
|
| 39 |
-
'
|
| 40 |
-
'
|
| 41 |
-
'
|
| 42 |
-
'
|
| 43 |
}
|
| 44 |
|
| 45 |
# Convert the extracted data into a Pandas DataFrame
|
|
|
|
| 32 |
|
| 33 |
# Extract relevant features from the JSON data
|
| 34 |
sample = {
|
| 35 |
+
'Product_Weight': product_data['product_weight'],
|
| 36 |
+
'Product_Sugar_Content': product_data['product_sugar_content'],
|
| 37 |
+
'Product_Allocated_Area': product_data['product_allocated_area'],
|
| 38 |
+
'Product_Type': product_data['product_type'],
|
| 39 |
+
'Product_MRP': product_data['product_mrp'],
|
| 40 |
+
'Store_Size': product_data['store_size'],
|
| 41 |
+
'Store_Location_City_Type': product_data['store_location_city_type'],
|
| 42 |
+
'Store_Type': product_data['store_type']
|
| 43 |
}
|
| 44 |
|
| 45 |
# Convert the extracted data into a Pandas DataFrame
|