michelecafagna26 commited on
Commit
c4764fb
1 Parent(s): 315d061

Update hl.py

Browse files
Files changed (1) hide show
  1. hl.py +2 -1
hl.py CHANGED
@@ -109,7 +109,8 @@ class HL(datasets.GeneratorBasedBuilder):
109
 
110
  idx = 0
111
 
112
- print(annotation_file_path)
 
113
  with open(annotation_file_path, "r") as fp:
114
  metadata = {json.loads(item)['file_name']: json.loads(item) for item in fp}
115
 
 
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