Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zyddnys committed Jun 17, 2024
1 parent 371f5aa commit e5c0f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manga_translator/translators/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def _translate(self, from_lang: str, to_lang: str, queries: List[str]) ->
new_translations = re.split(r'\n', response)

if len(new_translations) > query_size:
new_translations = new_translations[: len(query_size)]
new_translations = new_translations[: query_size]
elif len(new_translations) < query_size :
new_translations = new_translations + [''] * (query_size - len(new_translations))

Expand Down

0 comments on commit e5c0f4d

Please sign in to comment.