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
e160a5dd
Unverified
Commit
e160a5dd
authored
Jun 08, 2022
by
Sylvain Gugger
Committed by
GitHub
Jun 08, 2022
Browse files
Fix telemetry URL (#17608)
parent
7d0b6fc3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/utils/hub.py
src/transformers/utils/hub.py
+1
-1
No files found.
src/transformers/utils/hub.py
View file @
e160a5dd
...
@@ -109,7 +109,7 @@ if os.environ.get("HUGGINGFACE_CO_RESOLVE_ENDPOINT", None) is not None:
...
@@ -109,7 +109,7 @@ if os.environ.get("HUGGINGFACE_CO_RESOLVE_ENDPOINT", None) is not None:
HUGGINGFACE_CO_RESOLVE_ENDPOINT
=
os
.
environ
.
get
(
"HUGGINGFACE_CO_RESOLVE_ENDPOINT"
,
None
)
HUGGINGFACE_CO_RESOLVE_ENDPOINT
=
os
.
environ
.
get
(
"HUGGINGFACE_CO_RESOLVE_ENDPOINT"
,
None
)
HUGGINGFACE_CO_RESOLVE_ENDPOINT
=
os
.
environ
.
get
(
"HF_ENDPOINT"
,
HUGGINGFACE_CO_RESOLVE_ENDPOINT
)
HUGGINGFACE_CO_RESOLVE_ENDPOINT
=
os
.
environ
.
get
(
"HF_ENDPOINT"
,
HUGGINGFACE_CO_RESOLVE_ENDPOINT
)
HUGGINGFACE_CO_PREFIX
=
HUGGINGFACE_CO_RESOLVE_ENDPOINT
+
"/{model_id}/resolve/{revision}/{filename}"
HUGGINGFACE_CO_PREFIX
=
HUGGINGFACE_CO_RESOLVE_ENDPOINT
+
"/{model_id}/resolve/{revision}/{filename}"
HUGGINGFACE_CO_EXAMPLES_TELEMETRY
=
HUGGINGFACE_CO_RESOLVE_ENDPOINT
+
"/telemetry/examples"
HUGGINGFACE_CO_EXAMPLES_TELEMETRY
=
HUGGINGFACE_CO_RESOLVE_ENDPOINT
+
"/
api/
telemetry/examples"
def
is_remote_url
(
url_or_filename
):
def
is_remote_url
(
url_or_filename
):
...
...
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