mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Make src and dst languages explicit
This commit is contained in:
parent
7ff68ef252
commit
1a8d815de4
@ -12,11 +12,11 @@ def input_modifier(string):
|
||||
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):
|
||||
"""
|
||||
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…
Reference in New Issue
Block a user