Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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 |
-
"
|
| 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'):
|