Spaces:
Paused
Paused
return None instead of [] when no file is concluded
Browse files- toolbox.py +1 -1
toolbox.py
CHANGED
@@ -303,7 +303,7 @@ def on_file_uploaded(files, chatbot, txt):
|
|
303 |
def on_report_generated(files, chatbot):
|
304 |
from toolbox import find_recent_files
|
305 |
report_files = find_recent_files('gpt_log')
|
306 |
-
if len(report_files) == 0: return
|
307 |
# files.extend(report_files)
|
308 |
chatbot.append(['汇总报告如何远程获取?', '汇总报告已经添加到右侧“文件上传区”(可能处于折叠状态),请查收。'])
|
309 |
return report_files, chatbot
|
|
|
303 |
def on_report_generated(files, chatbot):
|
304 |
from toolbox import find_recent_files
|
305 |
report_files = find_recent_files('gpt_log')
|
306 |
+
if len(report_files) == 0: return files, chatbot
|
307 |
# files.extend(report_files)
|
308 |
chatbot.append(['汇总报告如何远程获取?', '汇总报告已经添加到右侧“文件上传区”(可能处于折叠状态),请查收。'])
|
309 |
return report_files, chatbot
|