Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,6 @@ def main_page(furniture_data):
|
|
| 57 |
selected_options[attribute] = st.multiselect(f'Choose {attribute}', options, key=key)
|
| 58 |
|
| 59 |
if st.button('Show Filtered Images'):
|
| 60 |
-
images_data = load_images()
|
| 61 |
# Assuming images_data is loaded from your JSON file
|
| 62 |
images_data = load_images() # Make sure this function is defined and loads your images data
|
| 63 |
|
|
@@ -65,7 +64,7 @@ def main_page(furniture_data):
|
|
| 65 |
|
| 66 |
if filtered_images:
|
| 67 |
for image in filtered_images:
|
| 68 |
-
st.image(image, width=300) # Adjust width as needed
|
| 69 |
else:
|
| 70 |
st.write("Not Trending")
|
| 71 |
|
|
|
|
| 57 |
selected_options[attribute] = st.multiselect(f'Choose {attribute}', options, key=key)
|
| 58 |
|
| 59 |
if st.button('Show Filtered Images'):
|
|
|
|
| 60 |
# Assuming images_data is loaded from your JSON file
|
| 61 |
images_data = load_images() # Make sure this function is defined and loads your images data
|
| 62 |
|
|
|
|
| 64 |
|
| 65 |
if filtered_images:
|
| 66 |
for image in filtered_images:
|
| 67 |
+
st.image('./images/'+image, width=300) # Adjust width as needed
|
| 68 |
else:
|
| 69 |
st.write("Not Trending")
|
| 70 |
|