Make src and dst languages explicit
This commit is contained in:
parent
7ff68ef252
commit
1a8d815de4
1 changed files with 2 additions and 2 deletions
|
@ -12,11 +12,11 @@ def input_modifier(string):
|
||||||
they are fed into the model.
|
they are fed into the model.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return translator.translate(string, dest='en').text
|
return translator.translate(string, src=params['language string'], dest='en').text
|
||||||
|
|
||||||
def output_modifier(string):
|
def output_modifier(string):
|
||||||
"""
|
"""
|
||||||
This function is applied to the model outputs.
|
This function is applied to the model outputs.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return translator.translate(string, dest=params['language string']).text
|
return translator.translate(string, src="en", dest=params['language string']).text
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue