Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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 |
|