Sandhya-2025 commited on
Commit
a8e2525
·
verified ·
1 Parent(s): 6c33eeb

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -32,21 +32,21 @@ st.subheader("Online Prediction")
32
  # "Departmental Store","Supermarket Type 1","Supermarket Type 2","Food Mart"
33
  # ])
34
 
35
- Product_Weight = st.number_input("Product Weight", min_value=0.0, max_value=100.0, step=0.1)
36
- Product_Allocated_Area = st.number_input("Allocated Display Area Ratio", min_value=0.0, max_value=1.0, step=0.01)
37
- Product_MRP = st.number_input("Product MRP", min_value=1.0, max_value=10000.0, step=1.0)
38
- Product_Sugar_Content = st.selectbox("Sugar Content", ["Low Sugar", "Regular", "No Sugar"])
39
- Product_Type = st.selectbox("Product Type", [
40
  "Meat","Snack Foods","Hard Drinks","Dairy","Canned","Soft Drinks",
41
  "Health and Hygiene","Baking Goods","Bread","Breakfast","Frozen Foods",
42
  "Fruits and Vegetables","Household","Seafood","Starchy Foods","Others"
43
  ])
44
- Store_Size = st.selectbox("Store Size", ["High", "Medium", "Low"])
45
- Store_Location_City_Type = st.selectbox("City Type", ["Tier 1", "Tier 2", "Tier 3"])
46
- Store_Type = st.selectbox("Store Type", [
47
  "Departmental Store","Supermarket Type 1","Supermarket Type 2","Food Mart"
48
  ])
49
- Store_Id = st.selectbox("Store Id", ["OUT001","OUT002","OUT003","OUT004"])
50
 
51
  # Convert user input into a DataFrame
52
  input_data = pd.DataFrame([{
 
32
  # "Departmental Store","Supermarket Type 1","Supermarket Type 2","Food Mart"
33
  # ])
34
 
35
+ Product_Weight = st.number_input("Product Weight", min_value=0.0, max_value=100.0, step=0.1)
36
+ Product_Allocated_Area = st.number_input("Allocated Display Area Ratio", min_value=0.0, max_value=1.0, step=0.01)
37
+ Product_MRP = st.number_input("Product MRP", min_value=1.0, max_value=10000.0, step=1.0)
38
+ Product_Sugar_Content = st.selectbox("Sugar Content", ["Low Sugar", "Regular", "No Sugar"])
39
+ Product_Type = st.selectbox("Product Type", [
40
  "Meat","Snack Foods","Hard Drinks","Dairy","Canned","Soft Drinks",
41
  "Health and Hygiene","Baking Goods","Bread","Breakfast","Frozen Foods",
42
  "Fruits and Vegetables","Household","Seafood","Starchy Foods","Others"
43
  ])
44
+ Store_Size = st.selectbox("Store Size", ["High", "Medium", "Low"])
45
+ Store_Location_City_Type = st.selectbox("City Type", ["Tier 1", "Tier 2", "Tier 3"])
46
+ Store_Type = st.selectbox("Store Type", [
47
  "Departmental Store","Supermarket Type 1","Supermarket Type 2","Food Mart"
48
  ])
49
+ Store_Id = st.selectbox("Store Id", ["OUT001","OUT002","OUT003","OUT004"])
50
 
51
  # Convert user input into a DataFrame
52
  input_data = pd.DataFrame([{