huggingface-hub 0.20.0rc1__py3-none-any.whl → 0.20.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huggingface-hub might be problematic. Click here for more details.
- huggingface_hub/__init__.py +3 -3
- huggingface_hub/_login.py +12 -100
- huggingface_hub/commands/user.py +1 -1
- huggingface_hub/repository.py +1 -1
- huggingface_hub/utils/__init__.py +1 -0
- huggingface_hub/utils/_headers.py +1 -1
- huggingface_hub/utils/_token.py +112 -0
- {huggingface_hub-0.20.0rc1.dist-info → huggingface_hub-0.20.1.dist-info}/METADATA +1 -1
- {huggingface_hub-0.20.0rc1.dist-info → huggingface_hub-0.20.1.dist-info}/RECORD +13 -12
- {huggingface_hub-0.20.0rc1.dist-info → huggingface_hub-0.20.1.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.20.0rc1.dist-info → huggingface_hub-0.20.1.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.20.0rc1.dist-info → huggingface_hub-0.20.1.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.20.0rc1.dist-info → huggingface_hub-0.20.1.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -46,7 +46,7 @@ import sys
|
|
|
46
46
|
from typing import TYPE_CHECKING
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
__version__ = "0.20.
|
|
49
|
+
__version__ = "0.20.1"
|
|
50
50
|
|
|
51
51
|
# Alphabetical order of definitions is ensured in tests
|
|
52
52
|
# WARNING: any comment added in this dictionary definition will be lost when
|
|
@@ -63,7 +63,6 @@ _SUBMOD_ATTRS = {
|
|
|
63
63
|
"InferenceEndpointType",
|
|
64
64
|
],
|
|
65
65
|
"_login": [
|
|
66
|
-
"get_token",
|
|
67
66
|
"interpreter_login",
|
|
68
67
|
"login",
|
|
69
68
|
"logout",
|
|
@@ -300,6 +299,7 @@ _SUBMOD_ATTRS = {
|
|
|
300
299
|
"configure_http_backend",
|
|
301
300
|
"dump_environment_info",
|
|
302
301
|
"get_session",
|
|
302
|
+
"get_token",
|
|
303
303
|
"logging",
|
|
304
304
|
"scan_cache_dir",
|
|
305
305
|
],
|
|
@@ -414,7 +414,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
414
414
|
InferenceEndpointType, # noqa: F401
|
|
415
415
|
)
|
|
416
416
|
from ._login import (
|
|
417
|
-
get_token, # noqa: F401
|
|
418
417
|
interpreter_login, # noqa: F401
|
|
419
418
|
login, # noqa: F401
|
|
420
419
|
logout, # noqa: F401
|
|
@@ -641,6 +640,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
641
640
|
configure_http_backend, # noqa: F401
|
|
642
641
|
dump_environment_info, # noqa: F401
|
|
643
642
|
get_session, # noqa: F401
|
|
643
|
+
get_token, # noqa: F401
|
|
644
644
|
logging, # noqa: F401
|
|
645
645
|
scan_cache_dir, # noqa: F401
|
|
646
646
|
)
|
huggingface_hub/_login.py
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"""Contains methods to login to the Hub."""
|
|
15
15
|
import os
|
|
16
16
|
import subprocess
|
|
17
|
-
import warnings
|
|
18
17
|
from functools import partial
|
|
19
18
|
from getpass import getpass
|
|
20
19
|
from pathlib import Path
|
|
@@ -22,10 +21,18 @@ from typing import Optional
|
|
|
22
21
|
|
|
23
22
|
from . import constants
|
|
24
23
|
from .commands._cli_utils import ANSI
|
|
25
|
-
from .utils import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
from .utils import (
|
|
25
|
+
capture_output,
|
|
26
|
+
get_token,
|
|
27
|
+
is_google_colab,
|
|
28
|
+
is_notebook,
|
|
29
|
+
list_credential_helpers,
|
|
30
|
+
logging,
|
|
31
|
+
run_subprocess,
|
|
32
|
+
set_git_credential,
|
|
33
|
+
unset_git_credential,
|
|
34
|
+
)
|
|
35
|
+
from .utils._token import _get_token_from_environment, _get_token_from_google_colab
|
|
29
36
|
|
|
30
37
|
|
|
31
38
|
logger = logging.get_logger(__name__)
|
|
@@ -38,8 +45,6 @@ _HF_LOGO_ASCII = """
|
|
|
38
45
|
_| _| _|_| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _| _| _| _|_|_| _|_|_|_|
|
|
39
46
|
"""
|
|
40
47
|
|
|
41
|
-
_CHECK_GOOGLE_COLAB_SECRET = True
|
|
42
|
-
|
|
43
48
|
|
|
44
49
|
def login(
|
|
45
50
|
token: Optional[str] = None,
|
|
@@ -284,99 +289,6 @@ def notebook_login(new_session: bool = True, write_permission: bool = False) ->
|
|
|
284
289
|
token_finish_button.on_click(partial(login_token_event, write_permission=write_permission))
|
|
285
290
|
|
|
286
291
|
|
|
287
|
-
###
|
|
288
|
-
# Token helpers
|
|
289
|
-
###
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
def get_token() -> Optional[str]:
|
|
293
|
-
"""
|
|
294
|
-
Get token if user is logged in.
|
|
295
|
-
|
|
296
|
-
Note: in most cases, you should use [`huggingface_hub.utils.build_hf_headers`] instead. This method is only useful
|
|
297
|
-
if you want to retrieve the token for other purposes than sending an HTTP request.
|
|
298
|
-
|
|
299
|
-
Token is retrieved in priority from the `HF_TOKEN` environment variable. Otherwise, we read the token file located
|
|
300
|
-
in the Hugging Face home folder. Returns None if user is not logged in. To log in, use [`login`] or
|
|
301
|
-
`huggingface-cli login`.
|
|
302
|
-
|
|
303
|
-
Returns:
|
|
304
|
-
`str` or `None`: The token, `None` if it doesn't exist.
|
|
305
|
-
"""
|
|
306
|
-
return _get_token_from_google_colab() or _get_token_from_environment() or _get_token_from_file()
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
def _get_token_from_google_colab() -> Optional[str]:
|
|
310
|
-
if not is_google_colab():
|
|
311
|
-
return None
|
|
312
|
-
|
|
313
|
-
global _CHECK_GOOGLE_COLAB_SECRET
|
|
314
|
-
if not _CHECK_GOOGLE_COLAB_SECRET: # request access only once
|
|
315
|
-
return None
|
|
316
|
-
|
|
317
|
-
try:
|
|
318
|
-
from google.colab import userdata
|
|
319
|
-
from google.colab.errors import Error as ColabError
|
|
320
|
-
except ImportError:
|
|
321
|
-
return None
|
|
322
|
-
|
|
323
|
-
try:
|
|
324
|
-
token = userdata.get("HF_TOKEN")
|
|
325
|
-
except userdata.NotebookAccessError:
|
|
326
|
-
# Means the user has a secret call `HF_TOKEN` and got a popup "please grand access to HF_TOKEN" and refused it
|
|
327
|
-
# => warn user but ignore error => do not re-request access to user
|
|
328
|
-
warnings.warn(
|
|
329
|
-
"\nAccess to the secret `HF_TOKEN` has not been granted on this notebook."
|
|
330
|
-
"\nYou will not be requested again."
|
|
331
|
-
"\nPlease restart the session if you want to be prompted again."
|
|
332
|
-
)
|
|
333
|
-
_CHECK_GOOGLE_COLAB_SECRET = False
|
|
334
|
-
return None
|
|
335
|
-
except userdata.SecretNotFoundError:
|
|
336
|
-
# Means the user did not define a `HF_TOKEN` secret => warn
|
|
337
|
-
warnings.warn(
|
|
338
|
-
"\nThe secret `HF_TOKEN` does not exist in your Colab secrets."
|
|
339
|
-
"\nTo authenticate with the Hugging Face Hub, create a token in your settings tab "
|
|
340
|
-
"(https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session."
|
|
341
|
-
"\nYou will be able to reuse this secret in all of your notebooks."
|
|
342
|
-
"\nPlease note that authentication is recommended but still optional to access public models or datasets."
|
|
343
|
-
)
|
|
344
|
-
return None
|
|
345
|
-
except ColabError as e:
|
|
346
|
-
# Something happen but we don't know what => recommend to open a GitHub issue
|
|
347
|
-
warnings.warn(
|
|
348
|
-
f"\nError while fetching `HF_TOKEN` secret value from your vault: '{str(e)}'."
|
|
349
|
-
"\nYou are not authenticated with the Hugging Face Hub in this notebook."
|
|
350
|
-
"\nIf the error persists, please let us know by opening an issue on GitHub "
|
|
351
|
-
"(https://github.com/huggingface/huggingface_hub/issues/new)."
|
|
352
|
-
)
|
|
353
|
-
return None
|
|
354
|
-
|
|
355
|
-
return _clean_token(token)
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
def _get_token_from_environment() -> Optional[str]:
|
|
359
|
-
# `HF_TOKEN` has priority (keep `HUGGING_FACE_HUB_TOKEN` for backward compatibility)
|
|
360
|
-
return _clean_token(os.environ.get("HF_TOKEN") or os.environ.get("HUGGING_FACE_HUB_TOKEN"))
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
def _get_token_from_file() -> Optional[str]:
|
|
364
|
-
try:
|
|
365
|
-
return _clean_token(Path(constants.HF_TOKEN_PATH).read_text())
|
|
366
|
-
except FileNotFoundError:
|
|
367
|
-
return None
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
def _clean_token(token: Optional[str]) -> Optional[str]:
|
|
371
|
-
"""Clean token by removing trailing and leading spaces and newlines.
|
|
372
|
-
|
|
373
|
-
If token is an empty string, return None.
|
|
374
|
-
"""
|
|
375
|
-
if token is None:
|
|
376
|
-
return None
|
|
377
|
-
return token.replace("\r", "").replace("\n", "").strip() or None
|
|
378
|
-
|
|
379
|
-
|
|
380
292
|
###
|
|
381
293
|
# Login private helpers
|
|
382
294
|
###
|
huggingface_hub/commands/user.py
CHANGED
|
@@ -29,11 +29,11 @@ from .._login import ( # noqa: F401 # for backward compatibility # noqa: F401
|
|
|
29
29
|
NOTEBOOK_LOGIN_PASSWORD_HTML,
|
|
30
30
|
NOTEBOOK_LOGIN_TOKEN_HTML_END,
|
|
31
31
|
NOTEBOOK_LOGIN_TOKEN_HTML_START,
|
|
32
|
-
get_token,
|
|
33
32
|
login,
|
|
34
33
|
logout,
|
|
35
34
|
notebook_login,
|
|
36
35
|
)
|
|
36
|
+
from ..utils import get_token
|
|
37
37
|
from ._cli_utils import ANSI
|
|
38
38
|
|
|
39
39
|
|
huggingface_hub/repository.py
CHANGED
|
@@ -12,11 +12,11 @@ from urllib.parse import urlparse
|
|
|
12
12
|
from huggingface_hub.constants import REPO_TYPES_URL_PREFIXES, REPOCARD_NAME
|
|
13
13
|
from huggingface_hub.repocard import metadata_load, metadata_save
|
|
14
14
|
|
|
15
|
-
from ._login import get_token
|
|
16
15
|
from .hf_api import HfApi, repo_type_and_id_from_hf_id
|
|
17
16
|
from .lfs import LFS_MULTIPART_UPLOAD_COMMAND
|
|
18
17
|
from .utils import (
|
|
19
18
|
SoftTemporaryDirectory,
|
|
19
|
+
get_token,
|
|
20
20
|
logging,
|
|
21
21
|
run_subprocess,
|
|
22
22
|
tqdm,
|
|
@@ -40,6 +40,7 @@ from ._errors import (
|
|
|
40
40
|
RevisionNotFoundError,
|
|
41
41
|
hf_raise_for_status,
|
|
42
42
|
)
|
|
43
|
+
from ._token import get_token
|
|
43
44
|
from ._fixes import SoftTemporaryDirectory, yaml_dump
|
|
44
45
|
from ._git_credential import list_credential_helpers, set_git_credential, unset_git_credential
|
|
45
46
|
from ._headers import build_hf_headers, get_token_to_send, LocalTokenNotFoundError
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
from typing import Dict, Optional, Union
|
|
17
17
|
|
|
18
18
|
from .. import constants
|
|
19
|
-
from .._login import get_token
|
|
20
19
|
from ._runtime import (
|
|
21
20
|
get_fastai_version,
|
|
22
21
|
get_fastcore_version,
|
|
@@ -29,6 +28,7 @@ from ._runtime import (
|
|
|
29
28
|
is_tf_available,
|
|
30
29
|
is_torch_available,
|
|
31
30
|
)
|
|
31
|
+
from ._token import get_token
|
|
32
32
|
from ._validators import validate_hf_hub_args
|
|
33
33
|
|
|
34
34
|
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Copyright 2023 The HuggingFace Team. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
"""Contains an helper to get the token from machine (env variable, secret or config file)."""
|
|
15
|
+
import os
|
|
16
|
+
import warnings
|
|
17
|
+
from pathlib import Path
|
|
18
|
+
from typing import Optional
|
|
19
|
+
|
|
20
|
+
from .. import constants
|
|
21
|
+
from ._runtime import is_google_colab
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
_CHECK_GOOGLE_COLAB_SECRET = True
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def get_token() -> Optional[str]:
|
|
28
|
+
"""
|
|
29
|
+
Get token if user is logged in.
|
|
30
|
+
|
|
31
|
+
Note: in most cases, you should use [`huggingface_hub.utils.build_hf_headers`] instead. This method is only useful
|
|
32
|
+
if you want to retrieve the token for other purposes than sending an HTTP request.
|
|
33
|
+
|
|
34
|
+
Token is retrieved in priority from the `HF_TOKEN` environment variable. Otherwise, we read the token file located
|
|
35
|
+
in the Hugging Face home folder. Returns None if user is not logged in. To log in, use [`login`] or
|
|
36
|
+
`huggingface-cli login`.
|
|
37
|
+
|
|
38
|
+
Returns:
|
|
39
|
+
`str` or `None`: The token, `None` if it doesn't exist.
|
|
40
|
+
"""
|
|
41
|
+
return _get_token_from_google_colab() or _get_token_from_environment() or _get_token_from_file()
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _get_token_from_google_colab() -> Optional[str]:
|
|
45
|
+
if not is_google_colab():
|
|
46
|
+
return None
|
|
47
|
+
|
|
48
|
+
global _CHECK_GOOGLE_COLAB_SECRET
|
|
49
|
+
if not _CHECK_GOOGLE_COLAB_SECRET: # request access only once
|
|
50
|
+
return None
|
|
51
|
+
|
|
52
|
+
try:
|
|
53
|
+
from google.colab import userdata
|
|
54
|
+
from google.colab.errors import Error as ColabError
|
|
55
|
+
except ImportError:
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
try:
|
|
59
|
+
token = userdata.get("HF_TOKEN")
|
|
60
|
+
except userdata.NotebookAccessError:
|
|
61
|
+
# Means the user has a secret call `HF_TOKEN` and got a popup "please grand access to HF_TOKEN" and refused it
|
|
62
|
+
# => warn user but ignore error => do not re-request access to user
|
|
63
|
+
warnings.warn(
|
|
64
|
+
"\nAccess to the secret `HF_TOKEN` has not been granted on this notebook."
|
|
65
|
+
"\nYou will not be requested again."
|
|
66
|
+
"\nPlease restart the session if you want to be prompted again."
|
|
67
|
+
)
|
|
68
|
+
_CHECK_GOOGLE_COLAB_SECRET = False
|
|
69
|
+
return None
|
|
70
|
+
except userdata.SecretNotFoundError:
|
|
71
|
+
# Means the user did not define a `HF_TOKEN` secret => warn
|
|
72
|
+
warnings.warn(
|
|
73
|
+
"\nThe secret `HF_TOKEN` does not exist in your Colab secrets."
|
|
74
|
+
"\nTo authenticate with the Hugging Face Hub, create a token in your settings tab "
|
|
75
|
+
"(https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session."
|
|
76
|
+
"\nYou will be able to reuse this secret in all of your notebooks."
|
|
77
|
+
"\nPlease note that authentication is recommended but still optional to access public models or datasets."
|
|
78
|
+
)
|
|
79
|
+
return None
|
|
80
|
+
except ColabError as e:
|
|
81
|
+
# Something happen but we don't know what => recommend to open a GitHub issue
|
|
82
|
+
warnings.warn(
|
|
83
|
+
f"\nError while fetching `HF_TOKEN` secret value from your vault: '{str(e)}'."
|
|
84
|
+
"\nYou are not authenticated with the Hugging Face Hub in this notebook."
|
|
85
|
+
"\nIf the error persists, please let us know by opening an issue on GitHub "
|
|
86
|
+
"(https://github.com/huggingface/huggingface_hub/issues/new)."
|
|
87
|
+
)
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
return _clean_token(token)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def _get_token_from_environment() -> Optional[str]:
|
|
94
|
+
# `HF_TOKEN` has priority (keep `HUGGING_FACE_HUB_TOKEN` for backward compatibility)
|
|
95
|
+
return _clean_token(os.environ.get("HF_TOKEN") or os.environ.get("HUGGING_FACE_HUB_TOKEN"))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def _get_token_from_file() -> Optional[str]:
|
|
99
|
+
try:
|
|
100
|
+
return _clean_token(Path(constants.HF_TOKEN_PATH).read_text())
|
|
101
|
+
except FileNotFoundError:
|
|
102
|
+
return None
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def _clean_token(token: Optional[str]) -> Optional[str]:
|
|
106
|
+
"""Clean token by removing trailing and leading spaces and newlines.
|
|
107
|
+
|
|
108
|
+
If token is an empty string, return None.
|
|
109
|
+
"""
|
|
110
|
+
if token is None:
|
|
111
|
+
return None
|
|
112
|
+
return token.replace("\r", "").replace("\n", "").strip() or None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.1
|
|
4
4
|
Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
|
|
5
5
|
Home-page: https://github.com/huggingface/huggingface_hub
|
|
6
6
|
Author: Hugging Face, Inc.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
huggingface_hub/__init__.py,sha256=
|
|
1
|
+
huggingface_hub/__init__.py,sha256=WvvtgmprtEwfH1CVyhFwhOmWzxwyuIs4Ydqm3MQQ67A,20809
|
|
2
2
|
huggingface_hub/_commit_api.py,sha256=LWwx0PmTHzh-gwO6-cl0GWTrSnzCy8tfZ8DDCxnfb7Y,27795
|
|
3
3
|
huggingface_hub/_commit_scheduler.py,sha256=FgfjYv3E0oK3iBxDdy45Y7t78FWkmjnBR4dRd5aZviU,13653
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=FW36nfm9UNNnc6L6hyL2KLiItglPGcQuYJ6DA2w4Gp4,14929
|
|
5
|
-
huggingface_hub/_login.py,sha256=
|
|
5
|
+
huggingface_hub/_login.py,sha256=8Y_OlSayd185u5lInGvY4zeYzBKaaaMBwTJl7MhIgSE,15325
|
|
6
6
|
huggingface_hub/_multi_commits.py,sha256=xEiS4N8ZmIrrDxVGS93mA33VoVrbhlAp5T8M_XQTMiA,12518
|
|
7
7
|
huggingface_hub/_snapshot_download.py,sha256=-0Kpp1gG1m2Slkbyj4GhvdOZeqzDTChqMQ1TGFHNjnA,15377
|
|
8
8
|
huggingface_hub/_space_api.py,sha256=Kr1rRpbMVoUs51U52KFY_FQcMA9TEC7RDCKGB4nzGus,5116
|
|
@@ -21,7 +21,7 @@ huggingface_hub/keras_mixin.py,sha256=fxVjwm742fwsLwbuNVt7Slo3KAjEX7sCcTudKnolPZ
|
|
|
21
21
|
huggingface_hub/lfs.py,sha256=CnXzAoDyGDSsNDN4b88-7hXhx1BFSsbFY6vGc3O2lRs,19122
|
|
22
22
|
huggingface_hub/repocard.py,sha256=kJGupeVIE2eQqo4sOGrUWRf6vOdkKdQtryMdZKNxqoc,34257
|
|
23
23
|
huggingface_hub/repocard_data.py,sha256=ESn22o1V5ynxwQp0JSxUSzSuWE9J0KBzj9FOEITNPCo,31077
|
|
24
|
-
huggingface_hub/repository.py,sha256=
|
|
24
|
+
huggingface_hub/repository.py,sha256=8oNhKNvJRye3dr67cTn8faKkBSiWFgvj7bIBlOpI-8U,54489
|
|
25
25
|
huggingface_hub/commands/__init__.py,sha256=AkbM2a-iGh0Vq_xAWhK3mu3uZ44km8-X5uWjKcvcrUQ,928
|
|
26
26
|
huggingface_hub/commands/_cli_utils.py,sha256=VA_3cHzIlsEQmKPnfNTgJNI36UtcrxRmfB44RdbP1LA,1970
|
|
27
27
|
huggingface_hub/commands/delete_cache.py,sha256=9Nn2ihdORPpkULkhAzju6aYar2rsa4laSE38rt8645I,16130
|
|
@@ -31,7 +31,7 @@ huggingface_hub/commands/huggingface_cli.py,sha256=o862C98OcZoyqCzY7mNpia1h0KaLJ
|
|
|
31
31
|
huggingface_hub/commands/lfs.py,sha256=6E769AoRxUDiIOapn1_QvTbNtdUnUiouu2F4Gopp4do,7318
|
|
32
32
|
huggingface_hub/commands/scan_cache.py,sha256=nMEJxBScezxs00EWyAvJtWCjhwxCL1YlBE6qNfiT3RY,5182
|
|
33
33
|
huggingface_hub/commands/upload.py,sha256=vrac37T3sYwzaf6gpVR5qWzwh4fOhqakRvDUrLEx4Kg,13621
|
|
34
|
-
huggingface_hub/commands/user.py,sha256=
|
|
34
|
+
huggingface_hub/commands/user.py,sha256=QApZJOCQEHADhjunM3hlQ72uqHsearCiCE4SdpzGdcc,6893
|
|
35
35
|
huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
huggingface_hub/inference/_client.py,sha256=hhJSPBmDw5dVw1LoH2255-pX4uwMo8vHSkrhB_m54xY,86559
|
|
37
37
|
huggingface_hub/inference/_common.py,sha256=8GaagYW1hoSWjilWgMdbpJU4sK78l1RPKPBsvGHpXGU,11331
|
|
@@ -41,7 +41,7 @@ huggingface_hub/inference/_generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeu
|
|
|
41
41
|
huggingface_hub/inference/_generated/_async_client.py,sha256=v6CRLNY2GJz1TCzlPQVvphmeJL_OZ6yfupG2fF_WmJg,89343
|
|
42
42
|
huggingface_hub/templates/datasetcard_template.md,sha256=tWvaTQhO3WkU9Igi8Odwb44my9oYKAakb2ArfnTn1AU,5502
|
|
43
43
|
huggingface_hub/templates/modelcard_template.md,sha256=-z_riTFlcsX5pUja2FDd9ySGOkNy8vr6hroLct1hjJI,6874
|
|
44
|
-
huggingface_hub/utils/__init__.py,sha256=
|
|
44
|
+
huggingface_hub/utils/__init__.py,sha256=1msx7YIf9N22P92k3rcpZel2zvLqs-TsAxylD9WDavo,3239
|
|
45
45
|
huggingface_hub/utils/_cache_assets.py,sha256=kai77HPQMfYpROouMBQCr_gdBCaeTm996Sqj0dExbNg,5728
|
|
46
46
|
huggingface_hub/utils/_cache_manager.py,sha256=zRBo37DaHS6IDWyQ_53oCL4-U6p--inAGsC8DLtAQ_I,29103
|
|
47
47
|
huggingface_hub/utils/_chunk_utils.py,sha256=6VRyjiGr2bPupPl1azSUTxKuJ51wdgELipwJ2YRfH5U,2129
|
|
@@ -51,7 +51,7 @@ huggingface_hub/utils/_errors.py,sha256=nnvanhnSqX9nQ2LvOxNI38W5mYLYVYEQLhRr89Lp
|
|
|
51
51
|
huggingface_hub/utils/_experimental.py,sha256=rBx4gV2NU1dT_OfeRzsCmCWyIF4Wxcf0PdkmIASoT6o,2394
|
|
52
52
|
huggingface_hub/utils/_fixes.py,sha256=wFvfTYj62Il2OwkQB_Qp0xONG6SARQ5oEkT3_FhB4rc,2437
|
|
53
53
|
huggingface_hub/utils/_git_credential.py,sha256=NMfMmuqdub_QX3T2d32Jhpf3RBnf2eh4VnDhHoqyZRA,4595
|
|
54
|
-
huggingface_hub/utils/_headers.py,sha256=
|
|
54
|
+
huggingface_hub/utils/_headers.py,sha256=wz0kPrpu9PHpeCIJAq8MBiHuR2HbNWGukd0QgWS6lWo,9344
|
|
55
55
|
huggingface_hub/utils/_hf_folder.py,sha256=9FlyCbiMP-PuyR4MP8sh5wiYbphkCjP18sCma0P7XDw,4488
|
|
56
56
|
huggingface_hub/utils/_http.py,sha256=qJ9wlsv-SU9L4Epr8FLHznY3COIcOrUUmGMjJXfrQvI,12889
|
|
57
57
|
huggingface_hub/utils/_pagination.py,sha256=VfpmMLyNCRo24fw0o_yWysMK69d9M6sSg2-nWtuypO4,1840
|
|
@@ -60,6 +60,7 @@ huggingface_hub/utils/_runtime.py,sha256=6sMMfwixkJAJj7pqYAva9A1g3-MBNWenKtlvBB9
|
|
|
60
60
|
huggingface_hub/utils/_safetensors.py,sha256=EE9v9HflWBUqIegn0dCGHgNu9G9Db3v2aszvG4ldPF8,4876
|
|
61
61
|
huggingface_hub/utils/_subprocess.py,sha256=LW9b8TWh9rsm3pW9_5b-mVV_AtYNyLXgC6e09SthkWI,4616
|
|
62
62
|
huggingface_hub/utils/_telemetry.py,sha256=jHAdgWNcL9nVvMT3ec3i78O-cwL09GnlifuokzpQjMI,4641
|
|
63
|
+
huggingface_hub/utils/_token.py,sha256=3DYRsV6z2byAg0rjuz7mFD2Q52qN2K2craVYEEXhMqo,4502
|
|
63
64
|
huggingface_hub/utils/_typing.py,sha256=zTA0nTJAILGveXbJKyeh6u9uIagrFgPoRqr-uCEGDQI,921
|
|
64
65
|
huggingface_hub/utils/_validators.py,sha256=3ZmHubjslDRwFYe1oKyaUw6DZrc3DsuV2gABPrx7PTw,9358
|
|
65
66
|
huggingface_hub/utils/endpoint_helpers.py,sha256=reLS2ic6_BTe9RuZY5WLcd5dLjIWt5Klh5EHZ7XvHng,8533
|
|
@@ -67,9 +68,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-
|
|
|
67
68
|
huggingface_hub/utils/logging.py,sha256=mARNwc5gY6apMQ9IM5zymn-RsYnFbYW3b0HDMYXmBS0,4729
|
|
68
69
|
huggingface_hub/utils/sha.py,sha256=IVi7CfBthfu-ExLduY_CQltTy-tVGTbrvURCTOWKcLA,901
|
|
69
70
|
huggingface_hub/utils/tqdm.py,sha256=zBWgoxxwHooOceABVREVqSNpJGcMpaByKFVDU8VbuUQ,6334
|
|
70
|
-
huggingface_hub-0.20.
|
|
71
|
-
huggingface_hub-0.20.
|
|
72
|
-
huggingface_hub-0.20.
|
|
73
|
-
huggingface_hub-0.20.
|
|
74
|
-
huggingface_hub-0.20.
|
|
75
|
-
huggingface_hub-0.20.
|
|
71
|
+
huggingface_hub-0.20.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
huggingface_hub-0.20.1.dist-info/METADATA,sha256=_mwPR3T6IoDiH8sbuyp_os1yo5_h5MCYFgYb2wuKj5Q,12930
|
|
73
|
+
huggingface_hub-0.20.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
74
|
+
huggingface_hub-0.20.1.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
|
|
75
|
+
huggingface_hub-0.20.1.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
76
|
+
huggingface_hub-0.20.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|