update mbart en2m
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ def mbart_trans(article, target_language):
|
|
188 |
logger.info(f"Translated Result: {translated}")
|
189 |
return translated
|
190 |
else:
|
191 |
-
translated =
|
192 |
logger.info(f"Translated Result: {translated}")
|
193 |
return translated
|
194 |
else:
|
|
|
188 |
logger.info(f"Translated Result: {translated}")
|
189 |
return translated
|
190 |
else:
|
191 |
+
translated = mbart_en2m_model.translate(article, target_lang="zh")
|
192 |
logger.info(f"Translated Result: {translated}")
|
193 |
return translated
|
194 |
else:
|