mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-07-21 09:30:06 +00:00
chore: fix typo
This commit is contained in:
parent
cd2a0f8dbb
commit
f412a95707
@ -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:
|
||||||
|
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user