mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-02 07:22:14 +00:00
fix: Silence the tqdm messages during the downloading of model files
Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com>
This commit is contained in:
parent
e125b9b24d
commit
64c7382880
@ -98,6 +98,11 @@ class StandardPdfPipeline(PaginatedPipeline):
|
|||||||
) -> Path:
|
) -> Path:
|
||||||
from huggingface_hub import snapshot_download
|
from huggingface_hub import snapshot_download
|
||||||
|
|
||||||
|
# Disable tqdm prints used by HF
|
||||||
|
from tqdm import tqdm
|
||||||
|
from functools import partialmethod
|
||||||
|
tqdm.__init__ = partialmethod(tqdm.__init__, disable=True)
|
||||||
|
|
||||||
download_path = snapshot_download(
|
download_path = snapshot_download(
|
||||||
repo_id="ds4sd/docling-models",
|
repo_id="ds4sd/docling-models",
|
||||||
force_download=force,
|
force_download=force,
|
||||||
|
Loading…
Reference in New Issue
Block a user