From 8f23292a2c2a236913e412dd3d7aefa71359c0ed Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Fri, 13 Sep 2024 02:29:12 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model:=20=E5=A4=9A?= =?UTF-8?q?=E8=A8=80=E8=AA=9E=E5=AF=BE=E5=BF=9C=E3=81=AB=E4=BC=B4=E3=81=84?= =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E3=82=A8=E3=83=B3=E3=82=B8=E3=83=B3=E3=81=AE?= =?UTF-8?q?=E6=88=90=E5=90=A6=E3=82=92success[list]=E5=BD=A2=E5=BC=8F?= =?UTF-8?q?=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/webui_controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-python/webui_controller.py b/src-python/webui_controller.py index 37679c2d..37033f40 100644 --- a/src-python/webui_controller.py +++ b/src-python/webui_controller.py @@ -114,7 +114,7 @@ class MicMessage: pass else: translation, success = model.getInputTranslate(message) - if success is False: + if all(success) is not True: changeToCTranslate2Process() self.action("error_translation_engine", { "status":400, @@ -214,7 +214,7 @@ class SpeakerMessage: pass else: translation, success = model.getOutputTranslate(message) - if success is False: + if all(success) is not True: changeToCTranslate2Process() self.action("error_translation_engine", { "status":400, @@ -354,7 +354,7 @@ class ChatMessage: else: translation, success = model.getInputTranslate(message) - if success is False: + if all(success) is not True: changeToCTranslate2Process() self.action("error_translation_engine", { "status":400,