From e6e5174734217394e67d6954577c0566037cfc31 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Sun, 9 Jul 2023 23:47:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crazy_functional.py | 4 ++-- crazy_functions/{辅助面试.py => 语音助手.py} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename crazy_functions/{辅助面试.py => 语音助手.py} (99%) diff --git a/crazy_functional.py b/crazy_functional.py index d823730..431a2e6 100644 --- a/crazy_functional.py +++ b/crazy_functional.py @@ -418,12 +418,12 @@ def get_crazy_functions(): try: - from crazy_functions.辅助面试 import 辅助面试 + from crazy_functions.语音助手 import 语音助手 function_plugins.update({ "实时音频采集": { "Color": "stop", "AsButton": True, - "Function": HotReload(辅助面试) + "Function": HotReload(语音助手) } }) except: diff --git a/crazy_functions/辅助面试.py b/crazy_functions/语音助手.py similarity index 99% rename from crazy_functions/辅助面试.py rename to crazy_functions/语音助手.py index 135c7c3..515009b 100644 --- a/crazy_functions/辅助面试.py +++ b/crazy_functions/语音助手.py @@ -151,7 +151,7 @@ class InterviewAssistant(AliyunASR): @CatchException -def 辅助面试(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port): +def 语音助手(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port): # pip install -U openai-whisper chatbot.append(["对话助手函数插件:使用时,双手离开鼠标键盘吧", "音频助手, 正在听您讲话 ..."]) yield from update_ui(chatbot=chatbot, history=history) # 刷新界面