diff --git a/rwkv/chat_with_bot.py b/rwkv/chat_with_bot.py index 0ff772b..6ae0ce0 100644 --- a/rwkv/chat_with_bot.py +++ b/rwkv/chat_with_bot.py @@ -44,7 +44,7 @@ args = parser.parse_args() script_dir: pathlib.Path = pathlib.Path(os.path.abspath(__file__)).parent -with open(script_dir / 'prompt' / f'{LANGUAGE}-{PROMPT_TYPE}.json', 'r') as json_file: +with open(script_dir / 'prompt' / f'{LANGUAGE}-{PROMPT_TYPE}.json', 'r', encoding='utf8') as json_file: prompt_data = json.load(json_file) user, bot, separator, init_prompt = prompt_data['user'], prompt_data['bot'], prompt_data['separator'], prompt_data['prompt']