Spaces:
Build error
Build error
bug fix
Browse files- crazy_functions/解析项目源代码.py +2 -2
- crazy_functions/读文章写摘要.py +1 -1
crazy_functions/解析项目源代码.py
CHANGED
@@ -47,7 +47,7 @@ def 解析源代码(file_manifest, project_folder, top_p, temperature, chatbot,
|
|
47 |
while True:
|
48 |
try:
|
49 |
# gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history)
|
50 |
-
gpt_say = yield from predict_no_ui_but_counting_down(i_say,
|
51 |
break
|
52 |
except ConnectionAbortedError as e:
|
53 |
history = [his[len(his)//2:] for his in history]
|
@@ -97,7 +97,7 @@ def 解析项目本身(txt, top_p, temperature, chatbot, history, systemPromptTx
|
|
97 |
if not fast_debug:
|
98 |
# ** gpt request **
|
99 |
# gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history)
|
100 |
-
gpt_say = yield from predict_no_ui_but_counting_down(i_say,
|
101 |
|
102 |
chatbot[-1] = (i_say, gpt_say)
|
103 |
history.append(i_say); history.append(gpt_say)
|
|
|
47 |
while True:
|
48 |
try:
|
49 |
# gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history)
|
50 |
+
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时
|
51 |
break
|
52 |
except ConnectionAbortedError as e:
|
53 |
history = [his[len(his)//2:] for his in history]
|
|
|
97 |
if not fast_debug:
|
98 |
# ** gpt request **
|
99 |
# gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history)
|
100 |
+
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时
|
101 |
|
102 |
chatbot[-1] = (i_say, gpt_say)
|
103 |
history.append(i_say); history.append(gpt_say)
|
crazy_functions/读文章写摘要.py
CHANGED
@@ -46,7 +46,7 @@ def 解析Paper(file_manifest, project_folder, top_p, temperature, chatbot, hist
|
|
46 |
# ** gpt request **
|
47 |
while True:
|
48 |
try:
|
49 |
-
gpt_say = yield from predict_no_ui_but_counting_down(i_say,
|
50 |
break
|
51 |
except ConnectionAbortedError as e:
|
52 |
history = [his[len(his)//2:] for his in history]
|
|
|
46 |
# ** gpt request **
|
47 |
while True:
|
48 |
try:
|
49 |
+
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时
|
50 |
break
|
51 |
except ConnectionAbortedError as e:
|
52 |
history = [his[len(his)//2:] for his in history]
|