mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-03 20:22:49 +08:00
fix utils.py bug
Former-commit-id: a19fc2ebf7a77f95caae360bf4d61533a1d7cc74
This commit is contained in:
parent
3b5a9c60b6
commit
a46ffa68ff
@ -58,7 +58,7 @@ def get_preview(
|
||||
if data_file.endswith(".json"):
|
||||
data = json.load(f)
|
||||
elif data_file.endswith(".jsonl"):
|
||||
data = [json.load(line) for line in f]
|
||||
data = [json.loads(line) for line in f]
|
||||
else:
|
||||
data = [line for line in f]
|
||||
return len(data), data[start:end], gr.update(visible=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user