Spaces:
Runtime error
Runtime error
Update src/utils.py
Browse files- src/utils.py +1 -1
src/utils.py
CHANGED
@@ -45,7 +45,7 @@ def parse_annotations(annotations_list):
|
|
45 |
for annotation in annotations_list:
|
46 |
key, value = annotation.split(': ')
|
47 |
if value == 'None':
|
48 |
-
annotations_dict[key] =
|
49 |
else:
|
50 |
annotations_dict[key] = int(value)
|
51 |
return annotations_dict
|
|
|
45 |
for annotation in annotations_list:
|
46 |
key, value = annotation.split(': ')
|
47 |
if value == 'None':
|
48 |
+
annotations_dict[key] = 'N/A'
|
49 |
else:
|
50 |
annotations_dict[key] = int(value)
|
51 |
return annotations_dict
|