Fix main_v2 bridge and pipeline regressions
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ def run_translation(in_queue, out_queue, args):
|
||||
else:
|
||||
text_to_translate = paragraph_text or corrected_text or raw_text
|
||||
if args.en:
|
||||
payload["en"] = corrected_text or raw_text
|
||||
payload["en"] = text_to_translate
|
||||
|
||||
if text_to_translate and translation_engines:
|
||||
for lang_key, (model, tokenizer) in translation_engines.items():
|
||||
|
||||
Reference in New Issue
Block a user