From 6db07f1bd88bd8d33f9ae2aba1d74ef1d940fa3b Mon Sep 17 00:00:00 2001 From: AnyaCoder Date: Wed, 6 Nov 2024 00:25:37 +0800 Subject: [PATCH 1/2] fix e2e_webui --- tools/e2e_webui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/e2e_webui.py b/tools/e2e_webui.py index 7134cfdf..cdff4d7d 100644 --- a/tools/e2e_webui.py +++ b/tools/e2e_webui.py @@ -65,8 +65,7 @@ async def process_audio_input( elif text_input: sr = 44100 sys_audio_data = None - else: - raise gr.Error("Invalid audio format") + def append_to_chat_ctx( part: ServeTextPart | ServeVQPart, role: str = "assistant" From 2d0b72b34dc114bec8c7ca103bbb3cb111bfdea1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:28:06 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tools/e2e_webui.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/e2e_webui.py b/tools/e2e_webui.py index cdff4d7d..68cfe1dc 100644 --- a/tools/e2e_webui.py +++ b/tools/e2e_webui.py @@ -66,7 +66,6 @@ async def process_audio_input( sr = 44100 sys_audio_data = None - def append_to_chat_ctx( part: ServeTextPart | ServeVQPart, role: str = "assistant" ) -> None: