add print statement to debug
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ def mbart_trans(article, target_language):
|
|
178 |
|
179 |
def m2m_trans(article, target_language):
|
180 |
result_lang = detect_lang(article)
|
181 |
-
|
182 |
if result_lang != target_language:
|
183 |
if target_language == "English":
|
184 |
return m2m_model.translate(article, target_lang="en")
|
|
|
178 |
|
179 |
def m2m_trans(article, target_language):
|
180 |
result_lang = detect_lang(article)
|
181 |
+
print(result_lang)
|
182 |
if result_lang != target_language:
|
183 |
if target_language == "English":
|
184 |
return m2m_model.translate(article, target_lang="en")
|