👍️[Update] Model : translationの出力をlist形式に変更

This commit is contained in:
misyaguziya
2024-09-09 12:57:22 +09:00
parent 0773d0e75f
commit 5ccedb8cd0
2 changed files with 2 additions and 2 deletions

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:

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: