richylyq commited on
Commit
717e94d
1 Parent(s): 592978b

update error message

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def opus_trans(article, target_language):
64
  translated = translator(article)[0]["translation_text"]
65
  # print(translated)
66
  else:
67
- translated = "Error"
68
  return translated
69
 
70
 
 
64
  translated = translator(article)[0]["translation_text"]
65
  # print(translated)
66
  else:
67
+ translated = "Error: You chose the same language as the article detected language. Please reselect target_language and try again."
68
  return translated
69
 
70