Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def get_chinese_translation(text): #in_language_first, in_language_second,
|
|
23 |
print("********Inside get_chinese_translation ********")
|
24 |
src = 'eng_Latn'
|
25 |
tgt= 'zho_Hans'
|
26 |
-
print(f"text is :{text}, source language is : {
|
27 |
|
28 |
translator = pipeline('translation', model=nllb_model, tokenizer=nllb_tokenizer, src_lang=src, tgt_lang=tgt)
|
29 |
output = translator(text, max_length=400)
|
|
|
23 |
print("********Inside get_chinese_translation ********")
|
24 |
src = 'eng_Latn'
|
25 |
tgt= 'zho_Hans'
|
26 |
+
print(f"text is :{text}, source language is : {src}, target language is : {tgt} ")
|
27 |
|
28 |
translator = pipeline('translation', model=nllb_model, tokenizer=nllb_tokenizer, src_lang=src, tgt_lang=tgt)
|
29 |
output = translator(text, max_length=400)
|