chore: update download error message

Signed-off-by: reidliu <reid201711@gmail.com>
This commit is contained in:
reidliu 2025-02-22 08:56:31 +08:00
parent b890d7a611
commit 81b3e65897

View file

@ -343,7 +343,7 @@ def _hf_download(
"You can find your token by visiting https://huggingface.co/settings/tokens" "You can find your token by visiting https://huggingface.co/settings/tokens"
) )
except RepositoryNotFoundError: except RepositoryNotFoundError:
parser.error(f"Repository '{repo_id}' not found on the Hugging Face Hub.") parser.error(f"Repository '{repo_id}' not found on the Hugging Face Hub or incorrect Hugging Face token.")
except Exception as e: except Exception as e:
parser.error(e) parser.error(e)