Not-Adam commited on
Commit
3305d8c
·
verified ·
1 Parent(s): 1dbb4f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -171,6 +171,7 @@ def get_predicted_attributes(image_urls, category):
171
 
172
  # If attribute is details, then remove the obtained label from the values, and get the next most common
173
  if attribute == "details":
 
174
  values_formatted.remove(result[0] + f", clothing: {category}")
175
  responses = pipe(image_urls, candidate_labels=values_formatted)
176
  i = 0
 
171
 
172
  # If attribute is details, then remove the obtained label from the values, and get the next most common
173
  if attribute == "details":
174
+ print(values_formatted, result[0] + f", clothing: {category}")
175
  values_formatted.remove(result[0] + f", clothing: {category}")
176
  responses = pipe(image_urls, candidate_labels=values_formatted)
177
  i = 0