user-agent
commited on
Commit
•
7557387
1
Parent(s):
b3333a0
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def get_predicted_attributes(image_urls, category):
|
|
85 |
values = [f"{attribute}: {value}, clothing: {category}" for value in values]
|
86 |
|
87 |
# Get the predicted values for the attribute
|
88 |
-
responses = pipe(image_urls, candidate_labels=values
|
89 |
result = [response[0]['label'].split(", clothing:")[0] for response in responses]
|
90 |
|
91 |
# If attribute is details, then get the top 2 most common labels
|
|
|
85 |
values = [f"{attribute}: {value}, clothing: {category}" for value in values]
|
86 |
|
87 |
# Get the predicted values for the attribute
|
88 |
+
responses = pipe(image_urls, candidate_labels=values)
|
89 |
result = [response[0]['label'].split(", clothing:")[0] for response in responses]
|
90 |
|
91 |
# If attribute is details, then get the top 2 most common labels
|