mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00
style: format code with black
This commit is contained in:
parent
0b5e5f4d08
commit
b86bbf6e73
@ -37,7 +37,7 @@ class EPUBBookLoaderHelper:
|
|||||||
Exception,
|
Exception,
|
||||||
on_backoff=lambda details: logger.warning(f"retry backoff: {details}"),
|
on_backoff=lambda details: logger.warning(f"retry backoff: {details}"),
|
||||||
on_giveup=lambda details: logger.warning(f"retry abort: {details}"),
|
on_giveup=lambda details: logger.warning(f"retry abort: {details}"),
|
||||||
jitter=None
|
jitter=None,
|
||||||
)
|
)
|
||||||
def translate_with_backoff(self, text, context_flag=False):
|
def translate_with_backoff(self, text, context_flag=False):
|
||||||
return self.translate_model.translate(text, context_flag)
|
return self.translate_model.translate(text, context_flag)
|
||||||
@ -129,4 +129,4 @@ def not_trans(s):
|
|||||||
is_text_digit_and_space(s),
|
is_text_digit_and_space(s),
|
||||||
is_text_isbn(s),
|
is_text_isbn(s),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user