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: