Spaces:
Runtime error
Runtime error
fix logging encoding
Browse files
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
|