richylyq commited on
Commit
0d22421
1 Parent(s): f08dd12

remove hardcoded result_lang

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -55,10 +55,8 @@ def opus_trans(article, target_language):
55
  """
56
  result_lang = detect_lang(article, target_language)
57
  if target_language == "English":
58
- result_lang = "zh"
59
  target_lang = "en"
60
  elif target_language == "Chinese":
61
- result_lang = "en"
62
  target_lang = "zh"
63
  # result_lang = detect_lang(article, target_language)
64
 
 
55
  """
56
  result_lang = detect_lang(article, target_language)
57
  if target_language == "English":
 
58
  target_lang = "en"
59
  elif target_language == "Chinese":
 
60
  target_lang = "zh"
61
  # result_lang = detect_lang(article, target_language)
62