huggingface-hub 0.19.1__py3-none-any.whl → 0.19.2__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 +1 -1
- huggingface_hub/constants.py +5 -4
- {huggingface_hub-0.19.1.dist-info → huggingface_hub-0.19.2.dist-info}/METADATA +1 -1
- {huggingface_hub-0.19.1.dist-info → huggingface_hub-0.19.2.dist-info}/RECORD +8 -8
- {huggingface_hub-0.19.1.dist-info → huggingface_hub-0.19.2.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.19.1.dist-info → huggingface_hub-0.19.2.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.19.1.dist-info → huggingface_hub-0.19.2.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.19.1.dist-info → huggingface_hub-0.19.2.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
huggingface_hub/constants.py
CHANGED
|
@@ -82,15 +82,16 @@ REPO_TYPES_MAPPING = {
|
|
|
82
82
|
|
|
83
83
|
# default cache
|
|
84
84
|
default_home = os.path.join(os.path.expanduser("~"), ".cache")
|
|
85
|
-
|
|
85
|
+
HF_HOME = os.path.expanduser(
|
|
86
86
|
os.getenv(
|
|
87
87
|
"HF_HOME",
|
|
88
88
|
os.path.join(os.getenv("XDG_CACHE_HOME", default_home), "huggingface"),
|
|
89
89
|
)
|
|
90
90
|
)
|
|
91
|
+
hf_cache_home = HF_HOME # for backward compatibility. TODO: remove this in 1.0.0
|
|
91
92
|
|
|
92
|
-
default_cache_path = os.path.join(
|
|
93
|
-
default_assets_cache_path = os.path.join(
|
|
93
|
+
default_cache_path = os.path.join(HF_HOME, "hub")
|
|
94
|
+
default_assets_cache_path = os.path.join(HF_HOME, "assets")
|
|
94
95
|
|
|
95
96
|
# Legacy env variables
|
|
96
97
|
HUGGINGFACE_HUB_CACHE = os.getenv("HUGGINGFACE_HUB_CACHE", default_cache_path)
|
|
@@ -109,7 +110,7 @@ HF_HUB_DISABLE_TELEMETRY = _is_true(os.environ.get("HF_HUB_DISABLE_TELEMETRY") o
|
|
|
109
110
|
# `_OLD_HF_TOKEN_PATH` is deprecated and will be removed "at some point".
|
|
110
111
|
# See https://github.com/huggingface/huggingface_hub/issues/1232
|
|
111
112
|
_OLD_HF_TOKEN_PATH = os.path.expanduser("~/.huggingface/token")
|
|
112
|
-
HF_TOKEN_PATH = os.path.join(
|
|
113
|
+
HF_TOKEN_PATH = os.path.join(HF_HOME, "token")
|
|
113
114
|
|
|
114
115
|
|
|
115
116
|
if _staging_mode:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.2
|
|
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,4 +1,4 @@
|
|
|
1
|
-
huggingface_hub/__init__.py,sha256=
|
|
1
|
+
huggingface_hub/__init__.py,sha256=ZeFbK-g1uL7BSc0XYf_kHGn-RYHfX2UbbjSIRuQpkYo,19803
|
|
2
2
|
huggingface_hub/_commit_api.py,sha256=2OA0mNhjnVJWuhhKlkLcQQxGtnJhZ0RX1wRg0eOcgFM,26108
|
|
3
3
|
huggingface_hub/_commit_scheduler.py,sha256=FgfjYv3E0oK3iBxDdy45Y7t78FWkmjnBR4dRd5aZviU,13653
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=0ZNCntMfYgrKmnhLC_fPRRcaXQxpA7fkZ6250X3ZXz4,13853
|
|
@@ -10,7 +10,7 @@ huggingface_hub/_tensorboard_logger.py,sha256=3W8eUS3jhZ3WyVG9Hi6rVwZC-jcCyRunBn
|
|
|
10
10
|
huggingface_hub/_webhooks_payload.py,sha256=0v4VuOXYt9sshqPi96I1ymALkiyGWBYqX2KSAxGrqUU,2803
|
|
11
11
|
huggingface_hub/_webhooks_server.py,sha256=2wETO28XU2NSLnG-ardYbcLCuVbPL8e_Pl83_4-MngA,14757
|
|
12
12
|
huggingface_hub/community.py,sha256=FTuDzikTckQKCU29ZoeEHCg_qRXEqqdiPY3_dIiTsAo,12088
|
|
13
|
-
huggingface_hub/constants.py,sha256=
|
|
13
|
+
huggingface_hub/constants.py,sha256=GqGDNcZH_UgrZMNqkOgMlSQoIBPd0qr-2QlCZgJ4ZT0,6996
|
|
14
14
|
huggingface_hub/fastai_utils.py,sha256=5I7zAfgHJU_mZnxnf9wgWTHrCRu_EAV8VTangDVfE_o,16676
|
|
15
15
|
huggingface_hub/file_download.py,sha256=e2uff9eYmuQRBE5TObvZgzT6l4KoJmqKL80BziNRx0k,74545
|
|
16
16
|
huggingface_hub/hf_api.py,sha256=PW5MLw81kRu5jVzLQaN7HpErvhkBnIRznWOwPO8rFLU,297182
|
|
@@ -66,9 +66,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-
|
|
|
66
66
|
huggingface_hub/utils/logging.py,sha256=mARNwc5gY6apMQ9IM5zymn-RsYnFbYW3b0HDMYXmBS0,4729
|
|
67
67
|
huggingface_hub/utils/sha.py,sha256=IVi7CfBthfu-ExLduY_CQltTy-tVGTbrvURCTOWKcLA,901
|
|
68
68
|
huggingface_hub/utils/tqdm.py,sha256=zBWgoxxwHooOceABVREVqSNpJGcMpaByKFVDU8VbuUQ,6334
|
|
69
|
-
huggingface_hub-0.19.
|
|
70
|
-
huggingface_hub-0.19.
|
|
71
|
-
huggingface_hub-0.19.
|
|
72
|
-
huggingface_hub-0.19.
|
|
73
|
-
huggingface_hub-0.19.
|
|
74
|
-
huggingface_hub-0.19.
|
|
69
|
+
huggingface_hub-0.19.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
70
|
+
huggingface_hub-0.19.2.dist-info/METADATA,sha256=HvCX4ta2nJMEphZBU78A3LA3_JdBQMjQlEMPbH_jX5w,13609
|
|
71
|
+
huggingface_hub-0.19.2.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
|
72
|
+
huggingface_hub-0.19.2.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
|
|
73
|
+
huggingface_hub-0.19.2.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
74
|
+
huggingface_hub-0.19.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|