Amittripipathi commited on
Commit
2d202f7
·
verified ·
1 Parent(s): 8376c96

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +10 -10
src/streamlit_app.py CHANGED
@@ -27,16 +27,16 @@ store_type = st.selectbox("Store Type", ["Departmental Store", "Supermarket Type
27
 
28
  # Convert categorical inputs to match model training
29
  input_data = {
30
- 'Product_Weight': product_weight,
31
- 'Product_Sugar_Content': product_sugar_content,
32
- 'Product_Allocated_Area': product_allocated_area,
33
- 'Product_Type': product_type,
34
- 'Product_MRP': product_mrp,
35
- 'Store_Id': store_id,
36
- 'Store_Establishment_Year': store_establishment_year,
37
- 'Store_Size': store_size,
38
- 'Store_Location_City_Type': store_location_city_type,
39
- 'Store_Type': store_type,
40
  }
41
 
42
  # Convert the input data to a DataFrame
 
27
 
28
  # Convert categorical inputs to match model training
29
  input_data = {
30
+ 'Product_Weight': [product_weight],
31
+ 'Product_Sugar_Content': [product_sugar_content],
32
+ 'Product_Allocated_Area': [product_allocated_area],
33
+ 'Product_Type': [product_type],
34
+ 'Product_MRP': [product_mrp],
35
+ 'Store_Id': [store_id],
36
+ 'Store_Establishment_Year': [store_establishment_year],
37
+ 'Store_Size': [store_size],
38
+ 'Store_Location_City_Type': [store_location_city_type],
39
+ 'Store_Type': [store_type],
40
  }
41
 
42
  # Convert the input data to a DataFrame