michelecafagna26 commited on
Commit
e75b63f
1 Parent(s): c4764fb

Update hl.py

Browse files
Files changed (1) hide show
  1. hl.py +1 -1
hl.py CHANGED
@@ -112,7 +112,7 @@ class HL(datasets.GeneratorBasedBuilder):
112
  assert Path(annotation_file_path).suffix == ".jsonl"
113
 
114
  with open(annotation_file_path, "r") as fp:
115
- metadata = {json.loads(item)['file_name']: json.loads(item) for item in fp}
116
 
117
  # This loop relies on the ordering of the files in the archive:
118
  # Annotation files come first, then the images.
 
112
  assert Path(annotation_file_path).suffix == ".jsonl"
113
 
114
  with open(annotation_file_path, "r") as fp:
115
+ metadata = {json.load(item)['file_name']: json.load(item) for item in fp}
116
 
117
  # This loop relies on the ordering of the files in the archive:
118
  # Annotation files come first, then the images.