Spaces:
Runtime error
Runtime error
fix unicode bug
Browse files- toolbox.py +2 -1
toolbox.py
CHANGED
@@ -47,7 +47,8 @@ def write_results_to_file(history, file_name=None):
|
|
47 |
"""
|
48 |
import os, time
|
49 |
if file_name is None:
|
50 |
-
file_name = time.strftime("chatGPT分析报告%Y-%m-%d-%H-%M-%S", time.localtime()) + '.md'
|
|
|
51 |
os.makedirs('./gpt_log/', exist_ok=True)
|
52 |
with open(f'./gpt_log/{file_name}', 'w', encoding = 'utf8') as f:
|
53 |
f.write('# chatGPT 分析报告\n')
|
|
|
47 |
"""
|
48 |
import os, time
|
49 |
if file_name is None:
|
50 |
+
# file_name = time.strftime("chatGPT分析报告%Y-%m-%d-%H-%M-%S", time.localtime()) + '.md'
|
51 |
+
file_name = 'chatGPT分析报告' + time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) + '.md'
|
52 |
os.makedirs('./gpt_log/', exist_ok=True)
|
53 |
with open(f'./gpt_log/{file_name}', 'w', encoding = 'utf8') as f:
|
54 |
f.write('# chatGPT 分析报告\n')
|