Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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.
|
| 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()):
|