This commit is contained in:
Your Name 2023-03-22 22:42:50 +08:00
parent e39c511444
commit 5a9aa65f49

View File

@ -56,9 +56,11 @@ def 解析一个Python项目(txt, top_p, temperature, chatbot, history, systemPr
if os.path.exists(txt): if os.path.exists(txt):
project_folder = txt project_folder = txt
else: else:
chatbot.append((f"解析项目: {txt}", "找不到本地项目: {txt}")) if txt == "": txt = '空空如也的输入栏'
history.append(i_say_show_user); history.append(gpt_say) chatbot.append((f"解析项目: {txt}", f"找不到本地项目: {txt}"))
return chatbot, history, '正常' history.append(f"解析项目: {txt}"); history.append(f"找不到本地项目: {txt}")
yield chatbot, history, '正常'
return
file_manifest = [f for f in glob.glob(f'{project_folder}/*.py')] file_manifest = [f for f in glob.glob(f'{project_folder}/*.py')]
print('begin analysis on:', file_manifest) print('begin analysis on:', file_manifest)