Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,15 +24,14 @@ Store_Area = st.number_input("Store Area (sq.ft)", min_value=0.0, value=2000.0)
|
|
| 24 |
|
| 25 |
# Prepare input for API
|
| 26 |
sales_data = {
|
|
|
|
| 27 |
"Product_Sugar_Content": Product_Sugar_Content,
|
|
|
|
| 28 |
"Product_Type": Product_Type,
|
| 29 |
-
"
|
| 30 |
"Store_Size": Store_Size,
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
"Product_Weight": Product_Weight,
|
| 34 |
-
"Product_Price": Product_Price,
|
| 35 |
-
"Store_Area": Store_Area
|
| 36 |
}
|
| 37 |
|
| 38 |
if st.button("Predict Sales", type='primary'):
|
|
|
|
| 24 |
|
| 25 |
# Prepare input for API
|
| 26 |
sales_data = {
|
| 27 |
+
"Product_Weight": Product_Weight,
|
| 28 |
"Product_Sugar_Content": Product_Sugar_Content,
|
| 29 |
+
"Product_Allocated_Area": Store_Area, # was Store_Area
|
| 30 |
"Product_Type": Product_Type,
|
| 31 |
+
"Product_MRP": Product_Price, # was Product_Price
|
| 32 |
"Store_Size": Store_Size,
|
| 33 |
+
"Product_Store_Sales_Total": 0, # placeholder (user won’t input)
|
| 34 |
+
"Store_Age": 10 # placeholder or calculate
|
|
|
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
if st.button("Predict Sales", type='primary'):
|