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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -175,13 +175,14 @@ def get_predicted_attributes(image_urls, category):
175
  values_formatted.remove(result[0] + f", clothing: {category}")
176
  responses = pipe(image_urls, candidate_labels=values_formatted)
177
  i = 0
 
178
  while len(responses) > 0 and responses[0][0]['score'] > 0.8 and i < 2:
179
- print("Common Result:", common_result)
180
  result = [response[0]['label'].split(", clothing:")[0] for response in responses]
181
  common_result.append(Counter(result).most_common(1))
182
 
183
  values_formatted.remove(result[0] + f", clothing: {category}")
184
  responses = pipe(image_urls, candidate_labels=values_formatted)
 
185
  i += 1
186
 
187
 
 
175
  values_formatted.remove(result[0] + f", clothing: {category}")
176
  responses = pipe(image_urls, candidate_labels=values_formatted)
177
  i = 0
178
+ print("Responses: ", responses)
179
  while len(responses) > 0 and responses[0][0]['score'] > 0.8 and i < 2:
 
180
  result = [response[0]['label'].split(", clothing:")[0] for response in responses]
181
  common_result.append(Counter(result).most_common(1))
182
 
183
  values_formatted.remove(result[0] + f", clothing: {category}")
184
  responses = pipe(image_urls, candidate_labels=values_formatted)
185
+ print("Responses: ", responses)
186
  i += 1
187
 
188