Closed ifromeast closed 1 year ago
@JThh Can you help to have a look at this issue?
It is likely due to vscode. Can you try using command line to read the file?
jdict = jload("./seed_prompts_en.jsonl")
@JThh It is no bussiness of VScode, just a bug
>>> from coati.dataset.utils import jload
>>> jdict = jload("./seed_prompts_en.jsonl")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/coati/dataset/utils.py", line 20, in jload
jdict = json.load(f)
File "/usr/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 462)
Aight I will try myself then
you can follow the guide below to figure out this problem:
🐛 Describe the bug
I have just test
and it will report ERROR that
Is there something wrong with the file or the utils.py?
Environment
No response