Merge branch 'model_traslation_format' into for_webui

This commit is contained in:
misyaguziya committed 2024-09-09 12:57:37 +09:00
commit 095f95bbff
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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: