Skip to content

Commit

Permalink
add library_version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavs10 committed Oct 19, 2023
1 parent 85473bb commit 029b6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audiocraft/models/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _get_state_dict(
else:
assert filename is not None, "filename needs to be defined if using HF checkpoints"

file = hf_hub_download(repo_id=file_or_url_or_id, filename=filename, cache_dir=cache_dir, library_name="audiocraft")
file = hf_hub_download(repo_id=file_or_url_or_id, filename=filename, cache_dir=cache_dir, library_name="audiocraft", library_version="1.0.0")
return torch.load(file, map_location=device)


Expand Down

0 comments on commit 029b6d6

Please sign in to comment.