user-agent
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def get_predicted_attributes(image_urls, category):
|
|
75 |
common_result = []
|
76 |
for attribute in attributes:
|
77 |
# values = get_attribute_values(attribute, category)
|
78 |
-
values =
|
79 |
|
80 |
if len(values) == 0:
|
81 |
continue
|
|
|
75 |
common_result = []
|
76 |
for attribute in attributes:
|
77 |
# values = get_attribute_values(attribute, category)
|
78 |
+
values = ATTRIBUTES_DICT.get(category,{}).get(attribute,[])
|
79 |
|
80 |
if len(values) == 0:
|
81 |
continue
|