diff --git a/Translator/translate.py b/Translator/translate.py index a3a99f4..367d8ee 100644 --- a/Translator/translate.py +++ b/Translator/translate.py @@ -8,6 +8,9 @@ def translate(input_text: str, source: str, target='english') -> str: if len(input_text.strip()) == 0: return input_text + if source == target: + return input_text + batch_size = 4999 batches = [] whitespaces = []