diff --git a/pdf2zh/doclayout.py b/pdf2zh/doclayout.py index 4ea250c3..c00f5e0e 100644 --- a/pdf2zh/doclayout.py +++ b/pdf2zh/doclayout.py @@ -70,7 +70,7 @@ def __init__(self, model_path: str): @staticmethod def from_pretrained(repo_id: str, filename: str): - pth = hf_hub_download(repo_id=repo_id, filename=filename) + pth = hf_hub_download(repo_id=repo_id, filename=filename, etag_timeout=1) return OnnxModel(pth) @property