From e3abc4070120d1c44146b98f1465ea012fd1ba8a Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Wed, 25 Sep 2024 11:53:47 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D=EF=B8=8F[Update]=20Controller=20:?= =?UTF-8?q?=20CTranslate2=E3=81=AB=E5=BC=B7=E5=88=B6=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=81=A8=E3=81=8D=E3=81=ABUI=E3=81=AB?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/webui_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-python/webui_controller.py b/src-python/webui_controller.py index bb9aca1a..e9417e5e 100644 --- a/src-python/webui_controller.py +++ b/src-python/webui_controller.py @@ -1390,9 +1390,9 @@ class Controller: osc_message = FORMAT.replace("[message]", "/".join(message)) return osc_message - @staticmethod - def changeToCTranslate2Process() -> None: + def changeToCTranslate2Process(self) -> None: config.SELECTED_TRANSLATION_ENGINES[config.SELECTED_TAB_NO] = "CTranslate2" + self.run(200, self.run_mapping["translation_engines"], "CTranslate2") def startTranscriptionSendMessage(self) -> None: model.startMicTranscript(self.micMessage)