Skip to content

Commit

Permalink
🩹 Missed some calls
Browse files Browse the repository at this point in the history
  • Loading branch information
SBrandeis committed Sep 8, 2022
1 parent a92271c commit b793920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/huggingface_hub/_snapshot_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def snapshot_download(
# if we have internet connection we retrieve the correct folder name from the huggingface api
_api = HfApi()
repo_info = _api.repo_info(
repo_id=repo_id, repo_type=repo_type, revision=revision, token=token
repo_id=repo_id, repo_type=repo_type, revision=revision, use_auth_token=token
)
filtered_repo_files = list(
filter_repo_objects(
Expand Down
2 changes: 1 addition & 1 deletion src/huggingface_hub/keras_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def push_to_hub_keras(
# Delete previous log files from Hub
operations += [
CommitOperationDelete(path_in_repo=file)
for file in api.list_repo_files(repo_id=repo_id, token=token)
for file in api.list_repo_files(repo_id=repo_id, use_auth_token=token)
if file.startswith("logs/")
]

Expand Down

0 comments on commit b793920

Please sign in to comment.