镜像自地址
https://github.com/SCIR-HI/Huatuo-Llama-Med-Chinese.git
已同步 2025-12-05 22:16:49 +00:00
Update prompter.py
Add utf-8 encoding for json reader
这个提交包含在:
@@ -18,7 +18,7 @@ class Prompter(object):
|
||||
file_name = osp.join("templates", f"{template_name}.json")
|
||||
if not osp.exists(file_name):
|
||||
raise ValueError(f"Can't read {file_name}")
|
||||
with open(file_name) as fp:
|
||||
with open(file_name, encoding='utf-8') as fp:
|
||||
self.template = json.load(fp)
|
||||
if self._verbose:
|
||||
print(
|
||||
|
||||
在新工单中引用
屏蔽一个用户