Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
6d6b7c92
".github/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "3facd62832812a950db4409b867c3a12d7f5c329"
Unverified
Commit
6d6b7c92
authored
May 10, 2023
by
Sylvain Gugger
Committed by
GitHub
May 10, 2023
Browse files
Fix link displayed for custom tools (#23274)
parent
0c65fb7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/dynamic_module_utils.py
src/transformers/dynamic_module_utils.py
+1
-1
No files found.
src/transformers/dynamic_module_utils.py
View file @
6d6b7c92
...
@@ -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
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment