richylyq commited on
Commit
b7e6af4
1 Parent(s): 3619186

add target lang for mbart english trans

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, target_language="en")
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