vallabbharath commited on
Commit
6926a5e
·
verified ·
1 Parent(s): 0cecac3

Force rebuild

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -21,17 +21,19 @@ col1, col2 = st.columns(2)
21
 
22
  with col1:
23
  product_weight = st.number_input("Product Weight", min_value=0.0, step=0.1)
24
- product_sugar = st.selectbox("Product Sugar Content", sorted(data['Product_Sugar_Content'].unique()))
25
- product_type = st.selectbox("Product Type", sorted(data['Product_Type'].unique()))
 
 
26
  product_mrp = st.number_input("Product MRP", min_value=0.0, step=0.1)
27
  product_allocated_area = st.number_input("Product Allocated Area", min_value=0.001, step=0.001)
28
 
29
  with col2:
30
  store_id = st.text_input("Store ID")
31
  store_est_year = st.number_input("Store Establishment Year", min_value=1900, max_value=2025, value=2010)
32
- store_size = st.selectbox("Store Size", sorted(data['Store_Size'].unique()))
33
- store_loc = st.selectbox("Store Location City Type", sorted(data['Store_Location_City_Type'].unique()))
34
- store_type = st.selectbox("Store Type", sorted(data['Store_Type'].unique()))
35
 
36
  if st.button("Predict"):
37
  # Prepare data for backend
 
21
 
22
  with col1:
23
  product_weight = st.number_input("Product Weight", min_value=0.0, step=0.1)
24
+ product_sugar = st.selectbox("Product Sugar Content", ['Low Sugar', 'No Sugar', 'Regular', 'reg'])
25
+ product_type = st.selectbox("Product Type", ['Baking Goods','Breads','Breakfast','Canned','Dairy',
26
+ 'Frozen Foods','Fruits and Vegetables','Hard Drinks','Health and Hygiene',
27
+ 'Household','Meat','Others','Seafood','Snack Foods','Soft Drinks','Starchy Foods'])
28
  product_mrp = st.number_input("Product MRP", min_value=0.0, step=0.1)
29
  product_allocated_area = st.number_input("Product Allocated Area", min_value=0.001, step=0.001)
30
 
31
  with col2:
32
  store_id = st.text_input("Store ID")
33
  store_est_year = st.number_input("Store Establishment Year", min_value=1900, max_value=2025, value=2010)
34
+ store_size = st.selectbox("Store Size", ['High', 'Medium', 'Small'])
35
+ store_loc = st.selectbox("Store Location City Type", ['Tier 1', 'Tier 2', 'Tier 3'] )
36
+ store_type = st.selectbox("Store Type", ['Departmental Store', 'Food Mart', 'Supermarket Type1', 'Supermarket Type2'])
37
 
38
  if st.button("Predict"):
39
  # Prepare data for backend