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