Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ st.markdown("""
|
|
| 34 |
def filter_images(images_data, selected_options, category):
|
| 35 |
matched_images = []
|
| 36 |
for image_name, image_info in images_data.items():
|
| 37 |
-
if image_info[category] == category:
|
| 38 |
if all(image_info['attributes'][attribute] in options
|
| 39 |
for attribute, options in selected_options.items()):
|
| 40 |
matched_images.append(image_name)
|
|
|
|
| 34 |
def filter_images(images_data, selected_options, category):
|
| 35 |
matched_images = []
|
| 36 |
for image_name, image_info in images_data.items():
|
| 37 |
+
if image_info['category'] == category:
|
| 38 |
if all(image_info['attributes'][attribute] in options
|
| 39 |
for attribute, options in selected_options.items()):
|
| 40 |
matched_images.append(image_name)
|