Fix error message in hub.py (#37796)

Fix error message
This commit is contained in:
SR 2025-04-26 02:33:06 +05:30 committed by GitHub
parent 6ce675ee81
commit 397a5ede33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -572,7 +572,7 @@ def cached_files(
)
raise EnvironmentError(
f"{path_or_repo_id} does not appear to have {msg}. Checkout 'https://huggingface.co/{path_or_repo_id}/tree/{revision_}'"
"for available files."
" for available files."
)
# Remove potential missing entries (we can silently remove them at this point based on the flags)