mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-02 09:30:24 +00:00
fix
This commit is contained in:
parent
fe20a5c848
commit
863eb2592d
@ -60,7 +60,7 @@ class DeepLFree(Base):
|
||||
|
||||
def translate(self, text):
|
||||
print(text)
|
||||
t_text = PyDeepLX.translate(text, "EN", self.language)
|
||||
t_text = str(PyDeepLX.translate(text, "EN", self.language))
|
||||
# spider rule
|
||||
time.sleep(random.choice(self.time_random))
|
||||
print("[bold green]" + re.sub("\n{3,}", "\n\n", t_text) + "[/bold green]")
|
||||
|
Loading…
x
Reference in New Issue
Block a user