Your Name commited on
Commit
17d9a06
1 Parent(s): 7d5aaa5

fix directory return bug

Browse files
crazy_functions/代码重写为全英文_多线程.py CHANGED
@@ -71,5 +71,5 @@ def 全项目切换英文(txt, top_p, temperature, chatbot, history, sys_prompt,
71
 
72
  # 备份一个文件
73
  res = write_results_to_file(history)
74
- chatbot.append(("给爷一份任务执行报告", res))
75
  yield chatbot, history, '正常'
 
71
 
72
  # 备份一个文件
73
  res = write_results_to_file(history)
74
+ chatbot.append(("生成一份任务执行报告", res))
75
  yield chatbot, history, '正常'
toolbox.py CHANGED
@@ -184,6 +184,7 @@ def find_recent_files(directory):
184
  if file_path.endswith('.log'): continue
185
  created_time = os.path.getctime(file_path)
186
  if created_time >= one_minute_ago:
 
187
  recent_files.append(file_path)
188
 
189
  return recent_files
 
184
  if file_path.endswith('.log'): continue
185
  created_time = os.path.getctime(file_path)
186
  if created_time >= one_minute_ago:
187
+ if os.path.isdir(file_path): continue
188
  recent_files.append(file_path)
189
 
190
  return recent_files