richylyq commited on
Commit
fbe66fa
·
1 Parent(s): f010b24

test for language detection

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -53,6 +53,7 @@ def opus_trans(article, target_language):
53
  Returns:
54
  string: translated piece of article based off target_language
55
  """
 
56
  if target_language == "English":
57
  result_lang = "zh"
58
  target_lang = "en"
 
53
  Returns:
54
  string: translated piece of article based off target_language
55
  """
56
+ result_lang = detect_lang(article, target_lang)
57
  if target_language == "English":
58
  result_lang = "zh"
59
  target_lang = "en"