fix logging encoding

This commit is contained in:
qingxu fu 2023-03-22 17:30:30 +08:00
parent d00f6bb1a6
commit 380a8a9d4d

View File

@ -20,7 +20,7 @@ title_html = """<h1 align="center">ChatGPT 学术优化</h1>"""
import logging
os.makedirs('gpt_log', exist_ok=True)
logging.basicConfig(filename='gpt_log/predict.log', level=logging.INFO)
logging.basicConfig(filename='gpt_log/predict.log', level=logging.INFO, encoding='utf-8')
from functional import get_functionals