Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1181,7 +1181,7 @@ class GoogleTranslator(BaseTranslator):
|
|
1181 |
@param text: desired text to translate
|
1182 |
@return: str: translated text
|
1183 |
"""
|
1184 |
-
if is_input_valid(text, max_chars=
|
1185 |
text = text.strip()
|
1186 |
if self._same_source_target() or is_empty(text):
|
1187 |
return text
|
|
|
1181 |
@param text: desired text to translate
|
1182 |
@return: str: translated text
|
1183 |
"""
|
1184 |
+
if is_input_valid(text, max_chars=5000):
|
1185 |
text = text.strip()
|
1186 |
if self._same_source_target() or is_empty(text):
|
1187 |
return text
|