Spaces:
Running
Running
bug fix
Browse files- 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 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
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)
|