update english lang pack
Browse files
app.py
CHANGED
@@ -99,7 +99,6 @@ def opus_trans(article, target_language):
|
|
99 |
|
100 |
Args:
|
101 |
article (string): article that user wishes to translate
|
102 |
-
result_lang (string): detected language in short form
|
103 |
target_language (string): language that user wishes to translate article into
|
104 |
|
105 |
Returns:
|
@@ -132,7 +131,7 @@ def nllb_trans(article, target_language):
|
|
132 |
inputs = tokenizer(article, return_tensors="pt")
|
133 |
|
134 |
if target_language == "English":
|
135 |
-
target_lang = "
|
136 |
elif target_language == "Chinese":
|
137 |
target_lang = "zho_Hans"
|
138 |
|
|
|
99 |
|
100 |
Args:
|
101 |
article (string): article that user wishes to translate
|
|
|
102 |
target_language (string): language that user wishes to translate article into
|
103 |
|
104 |
Returns:
|
|
|
131 |
inputs = tokenizer(article, return_tensors="pt")
|
132 |
|
133 |
if target_language == "English":
|
134 |
+
target_lang = "eng_Latn"
|
135 |
elif target_language == "Chinese":
|
136 |
target_lang = "zho_Hans"
|
137 |
|