Spaces:
Running
Running
logging
Browse files
main.py
CHANGED
@@ -20,8 +20,8 @@ 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/
|
24 |
-
|
25 |
|
26 |
from functional import get_functionals
|
27 |
functional = get_functionals()
|
|
|
20 |
|
21 |
import logging
|
22 |
os.makedirs('gpt_log', exist_ok=True)
|
23 |
+
logging.basicConfig(filename='gpt_log/chat_secrets.log', level=logging.INFO, encoding='utf-8')
|
24 |
+
print('所有问询记录将自动保存在本地目录./gpt_log/chat_secrets.log,请注意自我隐私保护哦!')
|
25 |
|
26 |
from functional import get_functionals
|
27 |
functional = get_functionals()
|