Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -17,6 +17,14 @@ Product_Allocated_Area = st.number_input("Product Allocated Area", min_value=0.0
|
|
| 17 |
|
| 18 |
Product_MRP = st.number_input("Product MRP", min_value=0.0, value=100.00)
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
Product_Type_Options = [
|
| 21 |
"Baking Goods", "Breads", "Breakfest", "Canned", "Dairy", "Frozen Foods",
|
| 22 |
"Fruits and Vegetables", "Hard Drinks", "Health and Hygiene", "Household",
|
|
@@ -56,9 +64,7 @@ Store_Type = st.selectbox(
|
|
| 56 |
Store_Age_Years_Options = ["1987", "1998", "1999", "2009"]
|
| 57 |
Store_Age_Years = st.selectbox(
|
| 58 |
"Store Opening Year: ",
|
| 59 |
-
Store_Age_Years_Options
|
| 60 |
-
index = 0,
|
| 61 |
-
format_func=lambda x: x
|
| 62 |
)
|
| 63 |
|
| 64 |
Product_Type_Category_Options = ["Food", "Electronics", "Clothing"]
|
|
@@ -74,10 +80,11 @@ product_data = {
|
|
| 74 |
"Product_Sugar_Content": Product_Sugar_Content_Options.index(Product_Sugar_Content),
|
| 75 |
"Product_Allocated_Area": Product_Allocated_Area,
|
| 76 |
"Product_MRP": Product_MRP,
|
|
|
|
| 77 |
"Store_Size": Store_Size_Options.index(Store_Size),
|
| 78 |
"Store_Location_City_Type": Store_Location_City_Type_Options.index(Store_Location_City_Type),
|
| 79 |
"Store_Type": Store_Type_Options.index(Store_Type),
|
| 80 |
-
"Store_Age_Years":
|
| 81 |
"Product_Type_Category": Product_Type_Category_Options.index(Product_Type_Category)
|
| 82 |
}
|
| 83 |
|
|
|
|
| 17 |
|
| 18 |
Product_MRP = st.number_input("Product MRP", min_value=0.0, value=100.00)
|
| 19 |
|
| 20 |
+
Store_Id_Options = ["OUT001", "OUT002", "OUT003", "OUT004"]
|
| 21 |
+
Store_Id = st.selectbox(
|
| 22 |
+
"Store Id: ",
|
| 23 |
+
Store_Id_Options,
|
| 24 |
+
index = 0,
|
| 25 |
+
format_func=lambda x: x
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
Product_Type_Options = [
|
| 29 |
"Baking Goods", "Breads", "Breakfest", "Canned", "Dairy", "Frozen Foods",
|
| 30 |
"Fruits and Vegetables", "Hard Drinks", "Health and Hygiene", "Household",
|
|
|
|
| 64 |
Store_Age_Years_Options = ["1987", "1998", "1999", "2009"]
|
| 65 |
Store_Age_Years = st.selectbox(
|
| 66 |
"Store Opening Year: ",
|
| 67 |
+
Store_Age_Years_Options
|
|
|
|
|
|
|
| 68 |
)
|
| 69 |
|
| 70 |
Product_Type_Category_Options = ["Food", "Electronics", "Clothing"]
|
|
|
|
| 80 |
"Product_Sugar_Content": Product_Sugar_Content_Options.index(Product_Sugar_Content),
|
| 81 |
"Product_Allocated_Area": Product_Allocated_Area,
|
| 82 |
"Product_MRP": Product_MRP,
|
| 83 |
+
"Store_Id": Store_Id_Options.index(Store_Id),
|
| 84 |
"Store_Size": Store_Size_Options.index(Store_Size),
|
| 85 |
"Store_Location_City_Type": Store_Location_City_Type_Options.index(Store_Location_City_Type),
|
| 86 |
"Store_Type": Store_Type_Options.index(Store_Type),
|
| 87 |
+
"Store_Age_Years": int(Store_Age_Years),
|
| 88 |
"Product_Type_Category": Product_Type_Category_Options.index(Product_Type_Category)
|
| 89 |
}
|
| 90 |
|