richylyq commited on
Commit
e3a8bf2
1 Parent(s): 765a96d

update mbart en2m

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = mbart_m2en_model.translate(article, target_lang="zh")
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: