Potential Details fix (#3)
Browse files- Potential Details fix (98b7df391c80291435f9a3f5bc088790459d7a13)
Co-authored-by: Adam Pavie <Not-Adam@users.noreply.huggingface.co>
app.py
CHANGED
@@ -186,7 +186,7 @@ def get_predicted_attributes(image_urls, category):
|
|
186 |
key, value = item.split(': ', 1)
|
187 |
|
188 |
if key == "details":
|
189 |
-
details_split = value.split("
|
190 |
if len(details_split) == 2:
|
191 |
result["details_1"] = details_split[0]
|
192 |
result["details_2"] = details_split[1]
|
|
|
186 |
key, value = item.split(': ', 1)
|
187 |
|
188 |
if key == "details":
|
189 |
+
details_split = value.split(", details: ")
|
190 |
if len(details_split) == 2:
|
191 |
result["details_1"] = details_split[0]
|
192 |
result["details_2"] = details_split[1]
|