Unverified Commit 38953a75 authored by Poedator's avatar Poedator Committed by GitHub
Browse files

update path to hub files in the error message (#29369)

update path to hub files

need to add `tree/` to path to files at HF hub.
see example path:
`https://huggingface.co/meta-llama/Llama-2-7b-hf/tree/main`
parent aade711d
...@@ -368,7 +368,7 @@ def cached_file( ...@@ -368,7 +368,7 @@ def cached_file(
if _raise_exceptions_for_missing_entries: if _raise_exceptions_for_missing_entries:
raise EnvironmentError( raise EnvironmentError(
f"{path_or_repo_id} does not appear to have a file named {full_filename}. Checkout " f"{path_or_repo_id} does not appear to have a file named {full_filename}. Checkout "
f"'https://huggingface.co/{path_or_repo_id}/{revision}' for available files." f"'https://huggingface.co/{path_or_repo_id}/tree/{revision}' for available files."
) )
else: else:
return None return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment