user-agent commited on
Commit
b3333a0
·
verified ·
1 Parent(s): 6845b01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = list(ATTRIBUTES_DICT.get(category,{}).get(attribute,{}).keys())
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