From 5ccedb8cd055c5873cb4d339f22cc511f31f8f11 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Mon, 9 Sep 2024 12:57:22 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D=EF=B8=8F[Update]=20Model=20:=20tra?= =?UTF-8?q?nslation=E3=81=AE=E5=87=BA=E5=8A=9B=E3=82=92list=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/model.py | 2 +- src-python/webui_controller.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-python/model.py b/src-python/model.py index 4f36f95a..2ef4f4fe 100644 --- a/src-python/model.py +++ b/src-python/model.py @@ -229,7 +229,7 @@ class Model: target_country, message ) - return translation, success_flag + return [translation], success_flag def addKeywords(self): for f in config.INPUT_MIC_WORD_FILTER: diff --git a/src-python/webui_controller.py b/src-python/webui_controller.py index a5d257ef..6f3f17e8 100644 --- a/src-python/webui_controller.py +++ b/src-python/webui_controller.py @@ -201,7 +201,7 @@ class SpeakerMessage: }, }) elif isinstance(message, str) and len(message) > 0: - translation = "" + translation = [] if model.detectRepeatReceiveMessage(message): return elif config.ENABLE_TRANSLATION is False: