"test/vscode:/vscode.git/clone" did not exist on "f6af3a6561b2528531bcb4815012b085280d4ec7"
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(
if _raise_exceptions_for_missing_entries:
raise EnvironmentError(
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:
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