Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mkXultra committed Aug 16, 2024
1 parent cd2a0f8 commit f412a95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book_maker/loader/epub_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _process_paragraph(self, p, new_p, index, p_to_save_len):
else:
t_text = ""
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:
t_text = self.translate_model.batch_translate(index)
else:
Expand Down
2 changes: 1 addition & 1 deletion book_maker/translator/chatgptapi_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def set_model_list(self, model_list):
print(f"Using model list {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})

def batch_init(self, book_name):
Expand Down

0 comments on commit f412a95

Please sign in to comment.