huggingface-hub 0.24.5__py3-none-any.whl → 0.24.7__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.

@@ -46,7 +46,7 @@ import sys
46
46
  from typing import TYPE_CHECKING
47
47
 
48
48
 
49
- __version__ = "0.24.5"
49
+ __version__ = "0.24.7"
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
@@ -1396,7 +1396,8 @@ def _hf_hub_download_to_cache_dir(
1396
1396
  filename=filename,
1397
1397
  force_download=force_download,
1398
1398
  )
1399
- _create_symlink(blob_path, pointer_path, new_blob=True)
1399
+ if not os.path.exists(pointer_path):
1400
+ _create_symlink(blob_path, pointer_path, new_blob=True)
1400
1401
 
1401
1402
  return pointer_path
1402
1403
 
@@ -296,7 +296,7 @@ def _format_text_generation_stream_output(
296
296
  if not byte_payload.startswith(b"data:"):
297
297
  return None # empty line
298
298
 
299
- if byte_payload == b"data: [DONE]":
299
+ if byte_payload.strip() == b"data: [DONE]":
300
300
  raise StopIteration("[DONE] signal received.")
301
301
 
302
302
  # Decode payload
@@ -344,7 +344,7 @@ def _format_chat_completion_stream_output(
344
344
  if not byte_payload.startswith(b"data:"):
345
345
  return None # empty line
346
346
 
347
- if byte_payload == b"data: [DONE]":
347
+ if byte_payload.strip() == b"data: [DONE]":
348
348
  raise StopIteration("[DONE] signal received.")
349
349
 
350
350
  # Decode payload
@@ -355,7 +355,7 @@ def _format_chat_completion_stream_output(
355
355
 
356
356
  async def _async_yield_from(client: "ClientSession", response: "ClientResponse") -> AsyncIterable[bytes]:
357
357
  async for byte_payload in response.content:
358
- yield byte_payload
358
+ yield byte_payload.strip()
359
359
  await client.close()
360
360
 
361
361
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 0.24.5
3
+ Version: 0.24.7
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.
@@ -24,122 +24,122 @@ Requires-Python: >=3.8.0
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
26
  Requires-Dist: filelock
27
- Requires-Dist: fsspec >=2023.5.0
28
- Requires-Dist: packaging >=20.9
29
- Requires-Dist: pyyaml >=5.1
27
+ Requires-Dist: fsspec>=2023.5.0
28
+ Requires-Dist: packaging>=20.9
29
+ Requires-Dist: pyyaml>=5.1
30
30
  Requires-Dist: requests
31
- Requires-Dist: tqdm >=4.42.1
32
- Requires-Dist: typing-extensions >=3.7.4.3
31
+ Requires-Dist: tqdm>=4.42.1
32
+ Requires-Dist: typing-extensions>=3.7.4.3
33
33
  Provides-Extra: all
34
- Requires-Dist: InquirerPy ==0.3.4 ; extra == 'all'
35
- Requires-Dist: aiohttp ; extra == 'all'
36
- Requires-Dist: minijinja >=1.0 ; extra == 'all'
37
- Requires-Dist: jedi ; extra == 'all'
38
- Requires-Dist: Jinja2 ; extra == 'all'
39
- Requires-Dist: pytest <8.2.2,>=8.1.1 ; extra == 'all'
40
- Requires-Dist: pytest-cov ; extra == 'all'
41
- Requires-Dist: pytest-env ; extra == 'all'
42
- Requires-Dist: pytest-xdist ; extra == 'all'
43
- Requires-Dist: pytest-vcr ; extra == 'all'
44
- Requires-Dist: pytest-asyncio ; extra == 'all'
45
- Requires-Dist: pytest-rerunfailures ; extra == 'all'
46
- Requires-Dist: pytest-mock ; extra == 'all'
47
- Requires-Dist: urllib3 <2.0 ; extra == 'all'
48
- Requires-Dist: soundfile ; extra == 'all'
49
- Requires-Dist: Pillow ; extra == 'all'
50
- Requires-Dist: gradio ; extra == 'all'
51
- Requires-Dist: numpy ; extra == 'all'
52
- Requires-Dist: fastapi ; extra == 'all'
53
- Requires-Dist: ruff >=0.5.0 ; extra == 'all'
54
- Requires-Dist: mypy ==1.5.1 ; extra == 'all'
55
- Requires-Dist: typing-extensions >=4.8.0 ; extra == 'all'
56
- Requires-Dist: types-PyYAML ; extra == 'all'
57
- Requires-Dist: types-requests ; extra == 'all'
58
- Requires-Dist: types-simplejson ; extra == 'all'
59
- Requires-Dist: types-toml ; extra == 'all'
60
- Requires-Dist: types-tqdm ; extra == 'all'
61
- Requires-Dist: types-urllib3 ; extra == 'all'
34
+ Requires-Dist: InquirerPy==0.3.4; extra == "all"
35
+ Requires-Dist: aiohttp; extra == "all"
36
+ Requires-Dist: minijinja>=1.0; extra == "all"
37
+ Requires-Dist: jedi; extra == "all"
38
+ Requires-Dist: Jinja2; extra == "all"
39
+ Requires-Dist: pytest<8.2.2,>=8.1.1; extra == "all"
40
+ Requires-Dist: pytest-cov; extra == "all"
41
+ Requires-Dist: pytest-env; extra == "all"
42
+ Requires-Dist: pytest-xdist; extra == "all"
43
+ Requires-Dist: pytest-vcr; extra == "all"
44
+ Requires-Dist: pytest-asyncio; extra == "all"
45
+ Requires-Dist: pytest-rerunfailures; extra == "all"
46
+ Requires-Dist: pytest-mock; extra == "all"
47
+ Requires-Dist: urllib3<2.0; extra == "all"
48
+ Requires-Dist: soundfile; extra == "all"
49
+ Requires-Dist: Pillow; extra == "all"
50
+ Requires-Dist: gradio; extra == "all"
51
+ Requires-Dist: numpy; extra == "all"
52
+ Requires-Dist: fastapi; extra == "all"
53
+ Requires-Dist: ruff>=0.5.0; extra == "all"
54
+ Requires-Dist: mypy==1.5.1; extra == "all"
55
+ Requires-Dist: typing-extensions>=4.8.0; extra == "all"
56
+ Requires-Dist: types-PyYAML; extra == "all"
57
+ Requires-Dist: types-requests; extra == "all"
58
+ Requires-Dist: types-simplejson; extra == "all"
59
+ Requires-Dist: types-toml; extra == "all"
60
+ Requires-Dist: types-tqdm; extra == "all"
61
+ Requires-Dist: types-urllib3; extra == "all"
62
62
  Provides-Extra: cli
63
- Requires-Dist: InquirerPy ==0.3.4 ; extra == 'cli'
63
+ Requires-Dist: InquirerPy==0.3.4; extra == "cli"
64
64
  Provides-Extra: dev
65
- Requires-Dist: InquirerPy ==0.3.4 ; extra == 'dev'
66
- Requires-Dist: aiohttp ; extra == 'dev'
67
- Requires-Dist: minijinja >=1.0 ; extra == 'dev'
68
- Requires-Dist: jedi ; extra == 'dev'
69
- Requires-Dist: Jinja2 ; extra == 'dev'
70
- Requires-Dist: pytest <8.2.2,>=8.1.1 ; extra == 'dev'
71
- Requires-Dist: pytest-cov ; extra == 'dev'
72
- Requires-Dist: pytest-env ; extra == 'dev'
73
- Requires-Dist: pytest-xdist ; extra == 'dev'
74
- Requires-Dist: pytest-vcr ; extra == 'dev'
75
- Requires-Dist: pytest-asyncio ; extra == 'dev'
76
- Requires-Dist: pytest-rerunfailures ; extra == 'dev'
77
- Requires-Dist: pytest-mock ; extra == 'dev'
78
- Requires-Dist: urllib3 <2.0 ; extra == 'dev'
79
- Requires-Dist: soundfile ; extra == 'dev'
80
- Requires-Dist: Pillow ; extra == 'dev'
81
- Requires-Dist: gradio ; extra == 'dev'
82
- Requires-Dist: numpy ; extra == 'dev'
83
- Requires-Dist: fastapi ; extra == 'dev'
84
- Requires-Dist: ruff >=0.5.0 ; extra == 'dev'
85
- Requires-Dist: mypy ==1.5.1 ; extra == 'dev'
86
- Requires-Dist: typing-extensions >=4.8.0 ; extra == 'dev'
87
- Requires-Dist: types-PyYAML ; extra == 'dev'
88
- Requires-Dist: types-requests ; extra == 'dev'
89
- Requires-Dist: types-simplejson ; extra == 'dev'
90
- Requires-Dist: types-toml ; extra == 'dev'
91
- Requires-Dist: types-tqdm ; extra == 'dev'
92
- Requires-Dist: types-urllib3 ; extra == 'dev'
65
+ Requires-Dist: InquirerPy==0.3.4; extra == "dev"
66
+ Requires-Dist: aiohttp; extra == "dev"
67
+ Requires-Dist: minijinja>=1.0; extra == "dev"
68
+ Requires-Dist: jedi; extra == "dev"
69
+ Requires-Dist: Jinja2; extra == "dev"
70
+ Requires-Dist: pytest<8.2.2,>=8.1.1; extra == "dev"
71
+ Requires-Dist: pytest-cov; extra == "dev"
72
+ Requires-Dist: pytest-env; extra == "dev"
73
+ Requires-Dist: pytest-xdist; extra == "dev"
74
+ Requires-Dist: pytest-vcr; extra == "dev"
75
+ Requires-Dist: pytest-asyncio; extra == "dev"
76
+ Requires-Dist: pytest-rerunfailures; extra == "dev"
77
+ Requires-Dist: pytest-mock; extra == "dev"
78
+ Requires-Dist: urllib3<2.0; extra == "dev"
79
+ Requires-Dist: soundfile; extra == "dev"
80
+ Requires-Dist: Pillow; extra == "dev"
81
+ Requires-Dist: gradio; extra == "dev"
82
+ Requires-Dist: numpy; extra == "dev"
83
+ Requires-Dist: fastapi; extra == "dev"
84
+ Requires-Dist: ruff>=0.5.0; extra == "dev"
85
+ Requires-Dist: mypy==1.5.1; extra == "dev"
86
+ Requires-Dist: typing-extensions>=4.8.0; extra == "dev"
87
+ Requires-Dist: types-PyYAML; extra == "dev"
88
+ Requires-Dist: types-requests; extra == "dev"
89
+ Requires-Dist: types-simplejson; extra == "dev"
90
+ Requires-Dist: types-toml; extra == "dev"
91
+ Requires-Dist: types-tqdm; extra == "dev"
92
+ Requires-Dist: types-urllib3; extra == "dev"
93
93
  Provides-Extra: fastai
94
- Requires-Dist: toml ; extra == 'fastai'
95
- Requires-Dist: fastai >=2.4 ; extra == 'fastai'
96
- Requires-Dist: fastcore >=1.3.27 ; extra == 'fastai'
94
+ Requires-Dist: toml; extra == "fastai"
95
+ Requires-Dist: fastai>=2.4; extra == "fastai"
96
+ Requires-Dist: fastcore>=1.3.27; extra == "fastai"
97
97
  Provides-Extra: hf_transfer
98
- Requires-Dist: hf-transfer >=0.1.4 ; extra == 'hf_transfer'
98
+ Requires-Dist: hf-transfer>=0.1.4; extra == "hf-transfer"
99
99
  Provides-Extra: inference
100
- Requires-Dist: aiohttp ; extra == 'inference'
101
- Requires-Dist: minijinja >=1.0 ; extra == 'inference'
100
+ Requires-Dist: aiohttp; extra == "inference"
101
+ Requires-Dist: minijinja>=1.0; extra == "inference"
102
102
  Provides-Extra: quality
103
- Requires-Dist: ruff >=0.5.0 ; extra == 'quality'
104
- Requires-Dist: mypy ==1.5.1 ; extra == 'quality'
103
+ Requires-Dist: ruff>=0.5.0; extra == "quality"
104
+ Requires-Dist: mypy==1.5.1; extra == "quality"
105
105
  Provides-Extra: tensorflow
106
- Requires-Dist: tensorflow ; extra == 'tensorflow'
107
- Requires-Dist: pydot ; extra == 'tensorflow'
108
- Requires-Dist: graphviz ; extra == 'tensorflow'
106
+ Requires-Dist: tensorflow; extra == "tensorflow"
107
+ Requires-Dist: pydot; extra == "tensorflow"
108
+ Requires-Dist: graphviz; extra == "tensorflow"
109
109
  Provides-Extra: tensorflow-testing
110
- Requires-Dist: tensorflow ; extra == 'tensorflow-testing'
111
- Requires-Dist: keras <3.0 ; extra == 'tensorflow-testing'
110
+ Requires-Dist: tensorflow; extra == "tensorflow-testing"
111
+ Requires-Dist: keras<3.0; extra == "tensorflow-testing"
112
112
  Provides-Extra: testing
113
- Requires-Dist: InquirerPy ==0.3.4 ; extra == 'testing'
114
- Requires-Dist: aiohttp ; extra == 'testing'
115
- Requires-Dist: minijinja >=1.0 ; extra == 'testing'
116
- Requires-Dist: jedi ; extra == 'testing'
117
- Requires-Dist: Jinja2 ; extra == 'testing'
118
- Requires-Dist: pytest <8.2.2,>=8.1.1 ; extra == 'testing'
119
- Requires-Dist: pytest-cov ; extra == 'testing'
120
- Requires-Dist: pytest-env ; extra == 'testing'
121
- Requires-Dist: pytest-xdist ; extra == 'testing'
122
- Requires-Dist: pytest-vcr ; extra == 'testing'
123
- Requires-Dist: pytest-asyncio ; extra == 'testing'
124
- Requires-Dist: pytest-rerunfailures ; extra == 'testing'
125
- Requires-Dist: pytest-mock ; extra == 'testing'
126
- Requires-Dist: urllib3 <2.0 ; extra == 'testing'
127
- Requires-Dist: soundfile ; extra == 'testing'
128
- Requires-Dist: Pillow ; extra == 'testing'
129
- Requires-Dist: gradio ; extra == 'testing'
130
- Requires-Dist: numpy ; extra == 'testing'
131
- Requires-Dist: fastapi ; extra == 'testing'
113
+ Requires-Dist: InquirerPy==0.3.4; extra == "testing"
114
+ Requires-Dist: aiohttp; extra == "testing"
115
+ Requires-Dist: minijinja>=1.0; extra == "testing"
116
+ Requires-Dist: jedi; extra == "testing"
117
+ Requires-Dist: Jinja2; extra == "testing"
118
+ Requires-Dist: pytest<8.2.2,>=8.1.1; extra == "testing"
119
+ Requires-Dist: pytest-cov; extra == "testing"
120
+ Requires-Dist: pytest-env; extra == "testing"
121
+ Requires-Dist: pytest-xdist; extra == "testing"
122
+ Requires-Dist: pytest-vcr; extra == "testing"
123
+ Requires-Dist: pytest-asyncio; extra == "testing"
124
+ Requires-Dist: pytest-rerunfailures; extra == "testing"
125
+ Requires-Dist: pytest-mock; extra == "testing"
126
+ Requires-Dist: urllib3<2.0; extra == "testing"
127
+ Requires-Dist: soundfile; extra == "testing"
128
+ Requires-Dist: Pillow; extra == "testing"
129
+ Requires-Dist: gradio; extra == "testing"
130
+ Requires-Dist: numpy; extra == "testing"
131
+ Requires-Dist: fastapi; extra == "testing"
132
132
  Provides-Extra: torch
133
- Requires-Dist: torch ; extra == 'torch'
134
- Requires-Dist: safetensors[torch] ; extra == 'torch'
133
+ Requires-Dist: torch; extra == "torch"
134
+ Requires-Dist: safetensors[torch]; extra == "torch"
135
135
  Provides-Extra: typing
136
- Requires-Dist: typing-extensions >=4.8.0 ; extra == 'typing'
137
- Requires-Dist: types-PyYAML ; extra == 'typing'
138
- Requires-Dist: types-requests ; extra == 'typing'
139
- Requires-Dist: types-simplejson ; extra == 'typing'
140
- Requires-Dist: types-toml ; extra == 'typing'
141
- Requires-Dist: types-tqdm ; extra == 'typing'
142
- Requires-Dist: types-urllib3 ; extra == 'typing'
136
+ Requires-Dist: typing-extensions>=4.8.0; extra == "typing"
137
+ Requires-Dist: types-PyYAML; extra == "typing"
138
+ Requires-Dist: types-requests; extra == "typing"
139
+ Requires-Dist: types-simplejson; extra == "typing"
140
+ Requires-Dist: types-toml; extra == "typing"
141
+ Requires-Dist: types-tqdm; extra == "typing"
142
+ Requires-Dist: types-urllib3; extra == "typing"
143
143
 
144
144
  <p align="center">
145
145
  <br/>
@@ -1,4 +1,4 @@
1
- huggingface_hub/__init__.py,sha256=wlv2umbWwErZpl6xXqHqenV7R253Zs1zmJRVkb400Us,33897
1
+ huggingface_hub/__init__.py,sha256=YZs41pwfYJqw2tKGRDBvNtS0-Tt__VD57RjA59XL1qI,33897
2
2
  huggingface_hub/_commit_api.py,sha256=Yj1ft_WbsnqjSbiYHgdqGmLTF6BTA4E8kAGYW89t2sQ,31057
3
3
  huggingface_hub/_commit_scheduler.py,sha256=nlJS_vnLb8i92NLrRwJX8Mg9QZ7f3kfLbLlQuEd5YjU,13647
4
4
  huggingface_hub/_inference_endpoints.py,sha256=th6vlJ2vUg314x7uMLzQHfy4AuX5mFlJqNobVIz5yOY,15944
@@ -14,7 +14,7 @@ huggingface_hub/community.py,sha256=SBaOfI-3atCzRbO0gDS8BYxctbdvD4G0X6D0GfY8Fgc,
14
14
  huggingface_hub/constants.py,sha256=BG3n2gl4JbxMw_JRvNTFyMcNnZIPzvT3KXSH-jm2J08,8005
15
15
  huggingface_hub/errors.py,sha256=IM0lNbExLzaYEs0HrrPvY4-kyj6DiP2Szu7Jy9slHOE,2083
16
16
  huggingface_hub/fastai_utils.py,sha256=5I7zAfgHJU_mZnxnf9wgWTHrCRu_EAV8VTangDVfE_o,16676
17
- huggingface_hub/file_download.py,sha256=davYbjGDlqtQgsEG3XLMGfmFnHcpXSX-StjxcymMHy8,84890
17
+ huggingface_hub/file_download.py,sha256=IjQ_91K3FZAY00_0AlAAnYF5HON08ywbC7OQdHa2TrY,84939
18
18
  huggingface_hub/hf_api.py,sha256=2tcE3gCnASv2UEVst_oMzTZiKmjlTraV7bP8ujbDmLQ,406710
19
19
  huggingface_hub/hf_file_system.py,sha256=HlYbWFhMrPWNqGUQfQrZR6H70QK0PgsxRvO4FantCNc,39160
20
20
  huggingface_hub/hub_mixin.py,sha256=bm5hZGeOHBSUBfiAXJv8cU05nAZr65TxnkUJLWLwAEg,37308
@@ -38,7 +38,7 @@ huggingface_hub/commands/upload.py,sha256=Mr69qO60otqCVw0sVSBPykUTkL9HO-pkCyulSD
38
38
  huggingface_hub/commands/user.py,sha256=QApZJOCQEHADhjunM3hlQ72uqHsearCiCE4SdpzGdcc,6893
39
39
  huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  huggingface_hub/inference/_client.py,sha256=xZJIdLXyP4KBz4H4YH1bpaAzCor7NlYIQ6ZvKbnDlqY,129139
41
- huggingface_hub/inference/_common.py,sha256=EEF8T9jtfLvqhIwwDM0vt8S54yObExoBncJIiHvEew8,14882
41
+ huggingface_hub/inference/_common.py,sha256=8JNanqi7rQnFryT_11MFX9siRg-dEDlLtLwPHE6p_Rw,14906
42
42
  huggingface_hub/inference/_templating.py,sha256=LCy-U_25R-l5dhcEHsyRwiOrgvKQHXkdSmynWCfsPjI,3991
43
43
  huggingface_hub/inference/_types.py,sha256=C73l5-RO8P1UMBHF8OAO9CRUq7Xdv33pcADoJsGMPSU,1782
44
44
  huggingface_hub/inference/_generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -107,9 +107,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-
107
107
  huggingface_hub/utils/logging.py,sha256=Cp03s0uEl3kDM9XHQW9a8GAoExODQ-e7kEtgMt-_To8,4728
108
108
  huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
109
109
  huggingface_hub/utils/tqdm.py,sha256=jQiVYwRG78HK4_54u0vTtz6Kt9IMGiHy3ixbIn3h2TU,9368
110
- huggingface_hub-0.24.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
111
- huggingface_hub-0.24.5.dist-info/METADATA,sha256=0GJYOPqguCYJl6C6HR9geRXospzJZjafkrYUQbv18xY,13183
112
- huggingface_hub-0.24.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
113
- huggingface_hub-0.24.5.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
114
- huggingface_hub-0.24.5.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
115
- huggingface_hub-0.24.5.dist-info/RECORD,,
110
+ huggingface_hub-0.24.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
111
+ huggingface_hub-0.24.7.dist-info/METADATA,sha256=pVmFRsdGXPQ0aRGerhODY177zSLW1ob56-1KFpTm6hc,13053
112
+ huggingface_hub-0.24.7.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
113
+ huggingface_hub-0.24.7.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
114
+ huggingface_hub-0.24.7.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
115
+ huggingface_hub-0.24.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.44.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5