Merge branch 'model_traslation_format' into for_webui
This commit is contained in:
@@ -229,7 +229,7 @@ class Model:
|
|||||||
target_country,
|
target_country,
|
||||||
message
|
message
|
||||||
)
|
)
|
||||||
return translation, success_flag
|
return [translation], success_flag
|
||||||
|
|
||||||
def addKeywords(self):
|
def addKeywords(self):
|
||||||
for f in config.INPUT_MIC_WORD_FILTER:
|
for f in config.INPUT_MIC_WORD_FILTER:
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ class SpeakerMessage:
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
elif isinstance(message, str) and len(message) > 0:
|
elif isinstance(message, str) and len(message) > 0:
|
||||||
translation = ""
|
translation = []
|
||||||
if model.detectRepeatReceiveMessage(message):
|
if model.detectRepeatReceiveMessage(message):
|
||||||
return
|
return
|
||||||
elif config.ENABLE_TRANSLATION is False:
|
elif config.ENABLE_TRANSLATION is False:
|
||||||
|
|||||||
Reference in New Issue
Block a user