From a19fc2ebf7a77f95caae360bf4d61533a1d7cc74 Mon Sep 17 00:00:00 2001 From: Q Date: Tue, 5 Sep 2023 10:38:01 +0800 Subject: [PATCH] fix utils.py bug --- src/llmtuner/webui/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llmtuner/webui/utils.py b/src/llmtuner/webui/utils.py index 4ee482d2..56868b49 100644 --- a/src/llmtuner/webui/utils.py +++ b/src/llmtuner/webui/utils.py @@ -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)