Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -16,15 +16,15 @@ def predict_sales():
|
|
| 16 |
sales_data = request.get_json()
|
| 17 |
|
| 18 |
sample = {
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 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])
|