Not-Adam commited on
Commit
98b7df3
1 Parent(s): c4ff1c3

Potential Details fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]