mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 04:32:50 +08:00
Merge pull request #786 from kinghuin/patch-1
fix utils.py bug Former-commit-id: 9224db90eaa4478757e3b92ba90615e33550c44d
This commit is contained in:
commit
5b4f59c3f9
@ -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