qingxu99 commited on
Commit
5491435
1 Parent(s): 1fa9a79

fix logging encoding

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -20,7 +20,7 @@ title_html = """<h1 align="center">ChatGPT 学术优化</h1>"""
20
 
21
  import logging
22
  os.makedirs('gpt_log', exist_ok=True)
23
- logging.basicConfig(filename='gpt_log/predict.log', level=logging.INFO)
24
 
25
 
26
  from functional import get_functionals
 
20
 
21
  import logging
22
  os.makedirs('gpt_log', exist_ok=True)
23
+ logging.basicConfig(filename='gpt_log/predict.log', level=logging.INFO, encoding='utf-8')
24
 
25
 
26
  from functional import get_functionals