Skip to content

Commit 58e65aa

Browse files
committed
fix: windows platform gbk codec bug
1 parent 739afed commit 58e65aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

veadk/evaluation/base_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def build_eval_set(self, file_path: str):
199199
eval_case_data_list: list[EvalTestCase] = []
200200

201201
try:
202-
with open(file_path, "r") as f:
202+
with open(file_path, "r", encoding="utf-8") as f:
203203
file_content = json.load(f)
204204
except json.JSONDecodeError as e:
205205
raise ValueError(f"Invalid JSON format in file {file_path}: {e}")

0 commit comments

Comments
 (0)