michelecafagna26 commited on
Commit
5eb5d3d
1 Parent(s): e75b63f

Update hl.py

Browse files
Files changed (1) hide show
  1. hl.py +2 -2
hl.py CHANGED
@@ -109,10 +109,10 @@ class HL(datasets.GeneratorBasedBuilder):
109
 
110
  idx = 0
111
 
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.
 
109
 
110
  idx = 0
111
 
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.