Your Name commited on
Commit
5a9aa65
1 Parent(s): e39c511
Files changed (1) hide show
  1. functional_crazy.py +5 -3
functional_crazy.py CHANGED
@@ -56,9 +56,11 @@ def 解析一个Python项目(txt, top_p, temperature, chatbot, history, systemPr
56
  if os.path.exists(txt):
57
  project_folder = txt
58
  else:
59
- chatbot.append((f"解析项目: {txt}", "找不到本地项目: {txt}"))
60
- history.append(i_say_show_user); history.append(gpt_say)
61
- return chatbot, history, '正常'
 
 
62
 
63
  file_manifest = [f for f in glob.glob(f'{project_folder}/*.py')]
64
  print('begin analysis on:', file_manifest)
 
56
  if os.path.exists(txt):
57
  project_folder = txt
58
  else:
59
+ if txt == "": txt = '空空如也的输入栏'
60
+ chatbot.append((f"解析项目: {txt}", f"找不到本地项目: {txt}"))
61
+ history.append(f"解析项目: {txt}"); history.append(f"找不到本地项目: {txt}")
62
+ yield chatbot, history, '正常'
63
+ return
64
 
65
  file_manifest = [f for f in glob.glob(f'{project_folder}/*.py')]
66
  print('begin analysis on:', file_manifest)