SHEN1017 commited on
Commit
aa9c4b0
·
verified ·
1 Parent(s): eb04509

Update citekit/attribute/attribute.py

Browse files
Files changed (1) hide show
  1. citekit/attribute/attribute.py +1 -1
citekit/attribute/attribute.py CHANGED
@@ -39,7 +39,7 @@ def load_json(file_path):
39
  with open(file_path, 'r') as file:
40
  data = file.read()
41
  if file_path.endswith('.jsonl'):
42
- data = f'[{'},{'.join(data.split("}\n{"))}]'
43
  objects = json.loads(data)
44
  return objects
45
 
 
39
  with open(file_path, 'r') as file:
40
  data = file.read()
41
  if file_path.endswith('.jsonl'):
42
+ data = f'[{"},{".join(data.split("}\n{"))}]'
43
  objects = json.loads(data)
44
  return objects
45