Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ Product_Sugar_Content = st.selectbox("Product Sugar Content", options=["Low Suga
|
|
| 16 |
# Product Allocated Area
|
| 17 |
Product_Allocated_Area = st.number_input("Product Allocated Area", min_value=0.000, max_value=1.00, value=0.05, step=0.001)
|
| 18 |
# Product Type
|
| 19 |
-
Product_Type = st.selectbox( "Product Type", options=["Frozen Foods", "Dairy", "Canned", "Baking Goods", "Health and Hygiene"])
|
| 20 |
# Product MRP
|
| 21 |
Product_MRP = st.number_input("Product MRP", min_value=0.0, max_value=1000.0, value=100.0, step=1.0)
|
| 22 |
# Store Establishment Year
|
|
@@ -27,7 +27,9 @@ Store_Size = st.selectbox("Store Size", options=["Small", "Medium", "High"])
|
|
| 27 |
Store_Location_City_Type = st.selectbox("Store Location City Type", options=["Tier 1", "Tier 2", "Tier 3"])
|
| 28 |
# Store Type
|
| 29 |
Store_Type = st.selectbox("Store Type",options=["Supermarket Type1", "Supermarket Type2", "Departmental Store", "Food Mart"])
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
Current_Year = datetime.now().year
|
| 32 |
Store_Age = Current_Year - Store_Establishment_Year
|
| 33 |
|
|
@@ -41,7 +43,8 @@ input_data = pd.DataFrame([{
|
|
| 41 |
'Store_Age': Store_Age,
|
| 42 |
'Store_Size': Store_Size,
|
| 43 |
'Store_Location_City_Type': Store_Location_City_Type,
|
| 44 |
-
'Store_Type': Store_Type
|
|
|
|
| 45 |
}])
|
| 46 |
|
| 47 |
# Make prediction when the "Predict" button is clicked
|
|
|
|
| 16 |
# Product Allocated Area
|
| 17 |
Product_Allocated_Area = st.number_input("Product Allocated Area", min_value=0.000, max_value=1.00, value=0.05, step=0.001)
|
| 18 |
# Product Type
|
| 19 |
+
Product_Type = st.selectbox( "Product Type", options=["Frozen Foods", "Dairy", "Canned", "Baking Goods", "Health and Hygiene", "Breads", "Fruits and Vegetables", "Meat", "Seafood", "Soft Drinks", "Hard Drinks", "Breakfast", "Starchyfoods"])
|
| 20 |
# Product MRP
|
| 21 |
Product_MRP = st.number_input("Product MRP", min_value=0.0, max_value=1000.0, value=100.0, step=1.0)
|
| 22 |
# Store Establishment Year
|
|
|
|
| 27 |
Store_Location_City_Type = st.selectbox("Store Location City Type", options=["Tier 1", "Tier 2", "Tier 3"])
|
| 28 |
# Store Type
|
| 29 |
Store_Type = st.selectbox("Store Type",options=["Supermarket Type1", "Supermarket Type2", "Departmental Store", "Food Mart"])
|
| 30 |
+
#Store Id
|
| 31 |
+
Store_id = st.selectbox("Store Id",options=["OUT001", "OUT002", "OUT003", "OUT004"])
|
| 32 |
+
#calculation of store age
|
| 33 |
Current_Year = datetime.now().year
|
| 34 |
Store_Age = Current_Year - Store_Establishment_Year
|
| 35 |
|
|
|
|
| 43 |
'Store_Age': Store_Age,
|
| 44 |
'Store_Size': Store_Size,
|
| 45 |
'Store_Location_City_Type': Store_Location_City_Type,
|
| 46 |
+
'Store_Type': Store_Type,
|
| 47 |
+
"Store_id": Store_id
|
| 48 |
}])
|
| 49 |
|
| 50 |
# Make prediction when the "Predict" button is clicked
|