diff --git a/pdm.lock b/pdm.lock index e79e10c..2e8ee79 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "lint", "monitoring", "notebooks", "test"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:eb7ee37fdab2ce5742534de3c4f98cd552df0e2ad087f867bf2ca0de3bd76c3f" +content_hash = "sha256:8a87f2f16a72c24d8a96dd5b0a52c0860943e2dbb46d74fcf8941dfded5ebf55" [[metadata.targets]] requires_python = ">=3.11,<=3.13" @@ -969,7 +969,7 @@ files = [ [[package]] name = "huggingface-hub" -version = "0.24.6" +version = "0.25.2" requires_python = ">=3.8.0" summary = "Client library to download and publish models, datasets and other repos on the huggingface.co hub" groups = ["default"] @@ -983,8 +983,8 @@ dependencies = [ "typing-extensions>=3.7.4.3", ] files = [ - {file = "huggingface_hub-0.24.6-py3-none-any.whl", hash = "sha256:a990f3232aa985fe749bc9474060cbad75e8b2f115f6665a9fda5b9c97818970"}, - {file = "huggingface_hub-0.24.6.tar.gz", hash = "sha256:cc2579e761d070713eaa9c323e3debe39d5b464ae3a7261c39a9195b27bb8000"}, + {file = "huggingface_hub-0.25.2-py3-none-any.whl", hash = "sha256:1897caf88ce7f97fe0110603d8f66ac264e3ba6accdf30cd66cc0fed5282ad25"}, + {file = "huggingface_hub-0.25.2.tar.gz", hash = "sha256:a1014ea111a5f40ccd23f7f7ba8ac46e20fa3b658ced1f86a00c75c06ec6423c"}, ] [[package]] diff --git a/pyproject.toml b/pyproject.toml index c5564de..71e6f8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,7 @@ dependencies = [ "moviepy>=1.0.3", "more-itertools>=10.2.0", "polars>=0.20.6", + "huggingface-hub>=0.25.2", ] [tool.pdm] diff --git a/src/cogelot/common/hf_datasets.py b/src/cogelot/common/hf_datasets.py index b1329d4..73e2fe6 100644 --- a/src/cogelot/common/hf_datasets.py +++ b/src/cogelot/common/hf_datasets.py @@ -10,10 +10,7 @@ from datasets.features.features import require_decoding from datasets.table import embed_table_storage from huggingface_hub import HfApi, snapshot_download -from huggingface_hub.utils._errors import ( - BadRequestError, - HfHubHTTPError, -) +from huggingface_hub.errors import BadRequestError, HfHubHTTPError from loguru import logger from tqdm import tqdm