From 4fde0120abc1344b9dd4ea8b1ebbf5a1549dca86 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Mon, 10 Jul 2023 00:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crazy_functions/语音助手.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crazy_functions/语音助手.py b/crazy_functions/语音助手.py index 2bbf2c0..b99f014 100644 --- a/crazy_functions/语音助手.py +++ b/crazy_functions/语音助手.py @@ -36,7 +36,7 @@ def chatbot2history(chatbot): history = [] for c in chatbot: for q in c: - if q not in ["[请讲话]", "[等待GPT响应]"]: + if q not in ["[请讲话]", "[等待GPT响应]", "[正在等您说完问题]"]: history.append(q.strip('
').strip('
').strip('

').strip('

')) return history @@ -112,7 +112,7 @@ class InterviewAssistant(AliyunASR): def begin(self, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt): # main plugin function self.init(chatbot) - chatbot.append(["[请讲话]", "[等待GPT响应]"]) + chatbot.append(["[请讲话]", "[正在等您说完问题]"]) yield from update_ui(chatbot=chatbot, history=history) # 刷新界面 self.plugin_wd.begin_watch() self.agt = AsyncGptTask() @@ -155,7 +155,7 @@ class InterviewAssistant(AliyunASR): self.agt.add_async_gpt_task(self.buffered_sentence, len(chatbot)-1, llm_kwargs, history, system_prompt) self.buffered_sentence = "" - chatbot.append(["[请讲话]", "[等待GPT响应]"]) + chatbot.append(["[请讲话]", "[正在等您说完问题]"]) yield from update_ui(chatbot=chatbot, history=history) # 刷新界面