add target lang for mbart english trans
Browse files
app.py
CHANGED
@@ -166,7 +166,7 @@ def mbart_trans(article, target_language):
|
|
166 |
|
167 |
if result_lang != target_language:
|
168 |
if target_language == "English":
|
169 |
-
return mbart_m2en_model.translate(article,
|
170 |
else:
|
171 |
return mbart_en2m_model.translate(article, target_lang="zh")
|
172 |
|
|
|
166 |
|
167 |
if result_lang != target_language:
|
168 |
if target_language == "English":
|
169 |
+
return mbart_m2en_model.translate(article, target_lang="en")
|
170 |
else:
|
171 |
return mbart_en2m_model.translate(article, target_lang="zh")
|
172 |
|