Unverified Commit 6d6b7c92 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix link displayed for custom tools (#23274)

parent 0c65fb7c
...@@ -318,7 +318,7 @@ def get_cached_module_file( ...@@ -318,7 +318,7 @@ def get_cached_module_file(
if len(new_files) > 0: if len(new_files) > 0:
new_files = "\n".join([f"- {f}" for f in new_files]) new_files = "\n".join([f"- {f}" for f in new_files])
repo_type_str = "" if repo_type is None else f"{repo_type}/" repo_type_str = "" if repo_type is None else f"{repo_type}s/"
url = f"https://huggingface.co/{repo_type_str}{pretrained_model_name_or_path}" url = f"https://huggingface.co/{repo_type_str}{pretrained_model_name_or_path}"
logger.warning( logger.warning(
f"A new version of the following files was downloaded from {url}:\n{new_files}" f"A new version of the following files was downloaded from {url}:\n{new_files}"
......
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