Skip to content

Commit

Permalink
fix: imports for hf hub errors
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkparekh committed Oct 9, 2024
1 parent d92b3f5 commit 316a3a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
5 changes: 1 addition & 4 deletions src/cogelot/common/hf_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 316a3a0

Please sign in to comment.