CodingBuddy commited on
Commit
6301921
·
verified ·
1 Parent(s): 16a822a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +25 -9
app.py CHANGED
@@ -8,20 +8,36 @@ st.title("SuperKart Sales Prediction")
8
  # Section for online prediction
9
  st.subheader("Sales Prediction")
10
 
11
- Product_Weight = st.number_input("Product Weight", min_value=1, value=16.54)
12
- Product_Sugar_Content = st.selectbox("Sugar Content", ["Low Sugar", "Regular", "No Sugar", "reg"])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  Product_Allocated_Area = st.number_input("Product Allocated area", value=0.144)
14
  Product_Type = st.selectbox("Product Type", ['Frozen Foods', 'Dairy', 'Canned', 'Baking Goods',
15
  'Health and Hygiene', 'Snack Foods', 'Meat', 'Household',
16
  'Hard Drinks', 'Fruits and Vegetables', 'Breads', 'Soft Drinks',
17
- 'Breakfast', 'Others', 'Starchy Foods', 'Seafood'])
18
- Product_MRP = st.number_input("Product MRP", 171.43)
19
- Store_Id = st.selectbox("Select Store", ['OUT004', 'OUT003', 'OUT001', 'OUT002'])
20
- Store_Establishment_Year = st.number_input("Store Establishment year", 1999)
21
- Store_Size = st.selectbox("Select Store Size", ['Medium', 'High', 'Small'])
22
- Store_Location_City_Type = st.selectbox("Select Store Location", ['Tier 2', 'Tier 1', 'Tier 3'])
23
  Store_Type = st.selectbox("Store Type", ['Supermarket Type2', 'Departmental Store', 'Supermarket Type1',
24
- 'Food Mart'])
 
25
 
26
 
27
  # Convert user input into a DataFrame
 
8
  # Section for online prediction
9
  st.subheader("Sales Prediction")
10
 
11
+ #Product_Weight = st.number_input("Product Weight", min_value=0.00, value=16.54)
12
+ #Product_Sugar_Content = st.selectbox("Sugar Content", ["Low Sugar", "Regular", "No Sugar", "reg"], value="")
13
+ #Product_Allocated_Area = st.number_input("Product Allocated area", value=0.144)
14
+ #Product_Type = st.selectbox("Product Type", ['Frozen Foods', 'Dairy', 'Canned', 'Baking Goods',
15
+ #'Health and Hygiene', 'Snack Foods', 'Meat', 'Household',
16
+ #'Hard Drinks', 'Fruits and Vegetables', 'Breads', 'Soft Drinks',
17
+ #'Breakfast', 'Others', 'Starchy Foods', 'Seafood'])
18
+ #Product_MRP = st.number_input("Product MRP", 171.43)
19
+ #Store_Id = st.selectbox("Select Store", ['OUT004', 'OUT003', 'OUT001', 'OUT002'])
20
+ #Store_Establishment_Year = st.number_input("Store Establishment year", 1999)
21
+ #Store_Size = st.selectbox("Select Store Size", ['Medium', 'High', 'Small'])
22
+ #Store_Location_City_Type = st.selectbox("Select Store Location", ['Tier 2', 'Tier 1', 'Tier 3'])
23
+ #Store_Type = st.selectbox("Store Type", ['Supermarket Type2', 'Departmental Store', 'Supermarket Type1',
24
+ # 'Food Mart'])
25
+
26
+ Product_Weight = st.number_input("Product Weight", min_value=0.01, value=16.54)
27
+ Product_Sugar_Content = st.selectbox("Sugar Content", ["Low Sugar", "Regular", "No Sugar", "reg"], value="Low Sugar" )
28
  Product_Allocated_Area = st.number_input("Product Allocated area", value=0.144)
29
  Product_Type = st.selectbox("Product Type", ['Frozen Foods', 'Dairy', 'Canned', 'Baking Goods',
30
  'Health and Hygiene', 'Snack Foods', 'Meat', 'Household',
31
  'Hard Drinks', 'Fruits and Vegetables', 'Breads', 'Soft Drinks',
32
+ 'Breakfast', 'Others', 'Starchy Foods', 'Seafood'], value="Dairy")
33
+ Product_MRP = st.number_input("Product MRP", value="171.43")
34
+ Store_Id = st.selectbox("Select Store", ['OUT004', 'OUT003', 'OUT001', 'OUT002'], value="OUT003")
35
+ Store_Establishment_Year = st.number_input("Store Establishment year", value="1999")
36
+ Store_Size = st.selectbox("Select Store Size", ['Medium', 'High', 'Small'], value="Medium")
37
+ Store_Location_City_Type = st.selectbox("Select Store Location", ['Tier 2', 'Tier 1', 'Tier 3'], value="Tier 1")
38
  Store_Type = st.selectbox("Store Type", ['Supermarket Type2', 'Departmental Store', 'Supermarket Type1',
39
+ 'Food Mart'], value="Departmental Store")
40
+
41
 
42
 
43
  # Convert user input into a DataFrame