Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Fix API limits
Browse files Browse the repository at this point in the history
  • Loading branch information
markovav-official committed May 30, 2021
1 parent 48f4fb5 commit 54ea4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def translate_threaded(self, mode, text):
paragraph_res = []
chunks = []
for word in paragraph.split():
if len(chunks) == 0 or len(chunks[-1]) > 900:
if len(chunks) == 0 or len(chunks[-1]) > 800:
chunks.append(word)
else:
chunks[-1] += ' ' + word
Expand Down

0 comments on commit 54ea4f7

Please sign in to comment.