gkdivya commited on
Commit
9732f2a
·
1 Parent(s): c401ea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def main_page(furniture_data):
45
  categories = list(furniture_data['Furniture'].keys())
46
  brands = ['Arhaus', 'Crate&Barrel', 'Williams Sonoma', 'Pottery Barn', 'West Elm', 'Z Gallerie']
47
 
48
- col1, col2, col3 = st.beta_columns(3)
49
 
50
  with col1:
51
  category = st.selectbox('Select Category', ['Apparel', 'Furnitures', 'Beauty'])
@@ -59,7 +59,7 @@ def main_page(furniture_data):
59
 
60
  # Load attributes based on the selected category
61
  attributes = furniture_data['Furniture'][selected_category]['attributes']
62
- columns = st.beta_columns(len(attributes))
63
 
64
  # Create a multi-select widget for each attribute with a unique key
65
  for i, (attribute, options) in enumerate(attributes.items()):
 
45
  categories = list(furniture_data['Furniture'].keys())
46
  brands = ['Arhaus', 'Crate&Barrel', 'Williams Sonoma', 'Pottery Barn', 'West Elm', 'Z Gallerie']
47
 
48
+ col1, col2, col3 = st.columns(3)
49
 
50
  with col1:
51
  category = st.selectbox('Select Category', ['Apparel', 'Furnitures', 'Beauty'])
 
59
 
60
  # Load attributes based on the selected category
61
  attributes = furniture_data['Furniture'][selected_category]['attributes']
62
+ columns = st.columns(len(attributes))
63
 
64
  # Create a multi-select widget for each attribute with a unique key
65
  for i, (attribute, options) in enumerate(attributes.items()):