diff --git a/pdf2zh/high_level.py b/pdf2zh/high_level.py index d4d63de9..4e7573b5 100644 --- a/pdf2zh/high_level.py +++ b/pdf2zh/high_level.py @@ -375,7 +375,7 @@ def translate( if file.startswith(tempfile.gettempdir()): os.unlink(file) generate_cache_start = time.time() - with concurrent.futures.ThreadPoolExecutor(max_workers=thread) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=thread * 3) as executor: translate_stream( s_raw, envs=kwarg.get("envs", {}),