Skip to content

Commit

Permalink
Use get_paths_info for retrieving file metadata (NVlabs#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyken17 authored Aug 10, 2024
1 parent 612f46b commit 5338dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload2hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def compute_lfs_hash(filename):
)
continue
else:
hf_meta = list(api.list_files_info(repo_id=repo, paths=rpath, repo_type=repo_type))[0]
hf_meta = api.get_paths_info(repo_id=repo, paths=rpath, repo_type=repo_type)[0]

if hf_meta.lfs is not None:
hash_type = "lfs-sha256"
Expand Down

0 comments on commit 5338dcf

Please sign in to comment.