update error message
Browse files
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 |
|