forked from p04798526/LLaMA-Factory-Mirror
fix: fix format
This commit is contained in:
parent
d1718878af
commit
90c6e4d020
|
@ -11,7 +11,7 @@ def jsonl_to_json(jsonl_file, json_file):
|
||||||
with open(json_file, 'w', encoding='utf-8') as f:
|
with open(json_file, 'w', encoding='utf-8') as f:
|
||||||
f.write('[' + '\n')
|
f.write('[' + '\n')
|
||||||
for line in jsonl_data:
|
for line in jsonl_data:
|
||||||
# line = line[1:-2]
|
line = line[0:-1]
|
||||||
f.write(' ' + line + ',' + '\n')
|
f.write(' ' + line + ',' + '\n')
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue