chore: fix typo

This commit is contained in:
mkXultra 2024-08-16 13:57:24 +09:00
parent cd2a0f8dbb
commit f412a95707
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ class EPUBBookLoader(BaseBookLoader):
else: else:
t_text = "" t_text = ""
if self.batch_flag: if self.batch_flag:
self.translate_model.add_to_batch_trasnlate_queue(index, new_p.text) self.translate_model.add_to_batch_translate_queue(index, new_p.text)
elif self.batch_use_flag: elif self.batch_use_flag:
t_text = self.translate_model.batch_translate(index) t_text = self.translate_model.batch_translate(index)
else: else:

View File

@ -399,7 +399,7 @@ class ChatGPTAPI(Base):
print(f"Using model list {model_list}") print(f"Using model list {model_list}")
self.model_list = cycle(model_list) self.model_list = cycle(model_list)
def add_to_batch_trasnlate_queue(self, book_index, text): def add_to_batch_translate_queue(self, book_index, text):
self.batch_text_list.append({"book_index": book_index, "text": text}) self.batch_text_list.append({"book_index": book_index, "text": text})
def batch_init(self, book_name): def batch_init(self, book_name):