Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -47,16 +47,16 @@ def predict_sales():
|
|
| 47 |
input_data = request.get_json()
|
| 48 |
|
| 49 |
sample = {
|
| 50 |
-
'
|
| 51 |
-
'
|
| 52 |
-
'
|
| 53 |
-
'
|
| 54 |
-
'
|
| 55 |
-
'
|
| 56 |
-
'
|
| 57 |
-
'
|
| 58 |
-
'
|
| 59 |
-
'
|
| 60 |
}
|
| 61 |
|
| 62 |
# Convert the extracted data into a Pandas DataFrame
|
|
|
|
| 47 |
input_data = request.get_json()
|
| 48 |
|
| 49 |
sample = {
|
| 50 |
+
'Product_Weight': input_data['Product_Weight'],
|
| 51 |
+
'Product_Sugar_Content': input_data['Product_Sugar_Content'],
|
| 52 |
+
'Product_Allocated_Area': input_data['Product_Allocated_Area'],
|
| 53 |
+
'Product_Type': input_data['Product_Type'],
|
| 54 |
+
'Product_Quantity': input_data[ 'Product_Quantity'],
|
| 55 |
+
'Product_MRP': input_data['Product_MRP'],
|
| 56 |
+
'Store_Establishment_Year': input_data['Store_Establishment_Year'],
|
| 57 |
+
'Store_Size': input_data['Store_Size'],
|
| 58 |
+
'Store_Location_City_Type': input_data['Store_Location_City_Type'],
|
| 59 |
+
'Store_Type': input_data['Store_Type']
|
| 60 |
}
|
| 61 |
|
| 62 |
# Convert the extracted data into a Pandas DataFrame
|