Not-Adam commited on
Commit
6f8ccb8
1 Parent(s): 96ca2bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -171,7 +171,7 @@ def get_predicted_attributes(image_urls, category):
171
  values = [f"{attribute}: {value.strip()}, clothing: {category}" for value in values]
172
 
173
  # Get the predicted values for the attribute
174
- responses = pipe(product['Images'].values[0], candidate_labels=values, device=device)
175
  most_common, score = get_most_common_label(responses)
176
  common_result.append(most_common)
177
 
 
171
  values = [f"{attribute}: {value.strip()}, clothing: {category}" for value in values]
172
 
173
  # Get the predicted values for the attribute
174
+ responses = pipe(image_urls, candidate_labels=values, device=device)
175
  most_common, score = get_most_common_label(responses)
176
  common_result.append(most_common)
177