RPeltier commited on
Commit
ca729e0
·
verified ·
1 Parent(s): cff28ef

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -67,14 +67,6 @@ Store_Age_Years = st.selectbox(
67
  Store_Age_Years_Options
68
  )
69
 
70
- Product_Type_Category_Options = ["Food", "Electronics", "Clothing"]
71
- Product_Type_Category = st.selectbox(
72
- "Product Type Category",
73
- Product_Type_Category_Options,
74
- index = 0,
75
- format_func=lambda x: x
76
- )
77
-
78
  product_data = {
79
  "Product_Weight": Product_Weight,
80
  "Product_Sugar_Content": Product_Sugar_Content_Options.index(Product_Sugar_Content),
@@ -85,7 +77,7 @@ product_data = {
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
 
91
  if st.button("Predict", type='primary'):
 
67
  Store_Age_Years_Options
68
  )
69
 
 
 
 
 
 
 
 
 
70
  product_data = {
71
  "Product_Weight": Product_Weight,
72
  "Product_Sugar_Content": Product_Sugar_Content_Options.index(Product_Sugar_Content),
 
77
  "Store_Location_City_Type": Store_Location_City_Type_Options.index(Store_Location_City_Type),
78
  "Store_Type": Store_Type_Options.index(Store_Type),
79
  "Store_Age_Years": int(Store_Age_Years),
80
+ "Product_Type": Product_Type_Options.index(Product_Type)
81
  }
82
 
83
  if st.button("Predict", type='primary'):