From d29f72ce108c7a5f01ff6adbd203bab617b9244d Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 24 Mar 2023 18:08:48 +0800 Subject: [PATCH] bug fix --- crazy_functions/解析项目源代码.py | 4 ++-- crazy_functions/读文章写摘要.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crazy_functions/解析项目源代码.py b/crazy_functions/解析项目源代码.py index 78f1620..09b15bd 100644 --- a/crazy_functions/解析项目源代码.py +++ b/crazy_functions/解析项目源代码.py @@ -47,7 +47,7 @@ def 解析源代码(file_manifest, project_folder, top_p, temperature, chatbot, while True: try: # gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history) - gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, top_p, temperature, history=history) # 带超时倒计时 + gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时 break except ConnectionAbortedError as e: history = [his[len(his)//2:] for his in history] @@ -97,7 +97,7 @@ def 解析项目本身(txt, top_p, temperature, chatbot, history, systemPromptTx if not fast_debug: # ** gpt request ** # gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history) - gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, top_p, temperature, history=history) # 带超时倒计时 + gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时 chatbot[-1] = (i_say, gpt_say) history.append(i_say); history.append(gpt_say) diff --git a/crazy_functions/读文章写摘要.py b/crazy_functions/读文章写摘要.py index 439cd3e..c42e56b 100644 --- a/crazy_functions/读文章写摘要.py +++ b/crazy_functions/读文章写摘要.py @@ -46,7 +46,7 @@ def 解析Paper(file_manifest, project_folder, top_p, temperature, chatbot, hist # ** gpt request ** while True: try: - gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, top_p, temperature, history=history) # 带超时倒计时 + gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时 break except ConnectionAbortedError as e: history = [his[len(his)//2:] for his in history]