huggingface-hub 0.29.1__py3-none-any.whl → 0.29.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/inference/_providers/hf_inference.py +5 -1
- huggingface_hub/utils/_subprocess.py +4 -2
- {huggingface_hub-0.29.1.dist-info → huggingface_hub-0.29.2.dist-info}/METADATA +1 -1
- {huggingface_hub-0.29.1.dist-info → huggingface_hub-0.29.2.dist-info}/RECORD +9 -9
- {huggingface_hub-0.29.1.dist-info → huggingface_hub-0.29.2.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.29.1.dist-info → huggingface_hub-0.29.2.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.29.1.dist-info → huggingface_hub-0.29.2.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.29.1.dist-info → huggingface_hub-0.29.2.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -84,7 +84,11 @@ class HFInferenceConversational(HFInferenceTask):
|
|
|
84
84
|
super().__init__("text-generation")
|
|
85
85
|
|
|
86
86
|
def _prepare_payload_as_dict(self, inputs: Any, parameters: Dict, mapped_model: str) -> Optional[Dict]:
|
|
87
|
-
payload_model =
|
|
87
|
+
payload_model = parameters.get("model") or mapped_model
|
|
88
|
+
|
|
89
|
+
if payload_model is None or payload_model.startswith(("http://", "https://")):
|
|
90
|
+
payload_model = "dummy"
|
|
91
|
+
|
|
88
92
|
return {**filter_none(parameters), "model": payload_model, "messages": inputs}
|
|
89
93
|
|
|
90
94
|
def _prepare_url(self, api_key: str, mapped_model: str) -> str:
|
|
@@ -44,8 +44,10 @@ def capture_output() -> Generator[StringIO, None, None]:
|
|
|
44
44
|
output = StringIO()
|
|
45
45
|
previous_output = sys.stdout
|
|
46
46
|
sys.stdout = output
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
try:
|
|
48
|
+
yield output
|
|
49
|
+
finally:
|
|
50
|
+
sys.stdout = previous_output
|
|
49
51
|
|
|
50
52
|
|
|
51
53
|
def run_subprocess(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.29.
|
|
3
|
+
Version: 0.29.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=mgB2dLjrT8J9yjkRab2M-ZhFJ2RmYkqGEDCnVfpVd7Y,48761
|
|
2
2
|
huggingface_hub/_commit_api.py,sha256=TqXmu5moVAhBa7iuyJdsqsfRTxTpGMnvsPkb4GgC3dc,32636
|
|
3
3
|
huggingface_hub/_commit_scheduler.py,sha256=tfIoO1xWHjTJ6qy6VS6HIoymDycFPg0d6pBSZprrU2U,14679
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=SLoZOQtv_hNl0Xuafo34L--zuCZ3zSJja2tSkYkG5V4,17268
|
|
@@ -82,7 +82,7 @@ huggingface_hub/inference/_providers/_common.py,sha256=8mgu95x46aRhvuHOVijczBpRJ
|
|
|
82
82
|
huggingface_hub/inference/_providers/black_forest_labs.py,sha256=YacbRSMwTcWMCtNfLZGRnjAwyOLAM9sIj06ZUKDb7n0,2647
|
|
83
83
|
huggingface_hub/inference/_providers/fal_ai.py,sha256=pjWeMfxatAXSVJsEQf142MQVvAz5x-jtZLYXapXJFlI,3455
|
|
84
84
|
huggingface_hub/inference/_providers/fireworks_ai.py,sha256=NazpDeD4agtFW6ISaXEvq5XAPVNeoG9XWk3O4NCxBNI,228
|
|
85
|
-
huggingface_hub/inference/_providers/hf_inference.py,sha256=
|
|
85
|
+
huggingface_hub/inference/_providers/hf_inference.py,sha256=UCDiW26pbBx9P0JGnBOAoortNH2rvDURvRry2kThK6Y,5272
|
|
86
86
|
huggingface_hub/inference/_providers/hyperbolic.py,sha256=qccC_gcMstGnvjmRyslgnuFVa9VAKS9w6F1ohwysvMU,1739
|
|
87
87
|
huggingface_hub/inference/_providers/nebius.py,sha256=P34BO2y8MdBWqYzzt4VlkPePkXAIbMlRxvV87UhZVdU,1508
|
|
88
88
|
huggingface_hub/inference/_providers/novita.py,sha256=SLOgZuAP1-Zs9NB2JmLf6kgX8R4O1Yy_64Ok9CmEZNs,745
|
|
@@ -114,7 +114,7 @@ huggingface_hub/utils/_pagination.py,sha256=hzLFLd8i_DKkPRVYzOx2CxLt5lcocEiAxDJr
|
|
|
114
114
|
huggingface_hub/utils/_paths.py,sha256=w1ZhFmmD5ykWjp_hAvhjtOoa2ZUcOXJrF4a6O3QpAWo,5042
|
|
115
115
|
huggingface_hub/utils/_runtime.py,sha256=tUyWylDgqaOXnMg39rvyusiruVN5ulcqiSwUEkQ9jjg,11195
|
|
116
116
|
huggingface_hub/utils/_safetensors.py,sha256=GW3nyv7xQcuwObKYeYoT9VhURVzG1DZTbKBKho8Bbos,4458
|
|
117
|
-
huggingface_hub/utils/_subprocess.py,sha256=
|
|
117
|
+
huggingface_hub/utils/_subprocess.py,sha256=u9FFUDE7TrzQTiuEzlUnHx7S2P57GbYRV8u16GJwrFw,4625
|
|
118
118
|
huggingface_hub/utils/_telemetry.py,sha256=54LXeIJU5pEGghPAh06gqNAR-UoxOjVLvKqAQscwqZs,4890
|
|
119
119
|
huggingface_hub/utils/_typing.py,sha256=Dgp6TQUlpzStfVLoSvXHCBP4b3NzHZ8E0Gg9mYAoDS4,2903
|
|
120
120
|
huggingface_hub/utils/_validators.py,sha256=dDsVG31iooTYrIyi5Vwr1DukL0fEmJwu3ceVNduhsuE,9204
|
|
@@ -123,9 +123,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-
|
|
|
123
123
|
huggingface_hub/utils/logging.py,sha256=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
|
|
124
124
|
huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
|
|
125
125
|
huggingface_hub/utils/tqdm.py,sha256=ZgdphuTnwAIaUKnnD2P7qVvNHpzHAyrYoItkiV0aEjQ,9835
|
|
126
|
-
huggingface_hub-0.29.
|
|
127
|
-
huggingface_hub-0.29.
|
|
128
|
-
huggingface_hub-0.29.
|
|
129
|
-
huggingface_hub-0.29.
|
|
130
|
-
huggingface_hub-0.29.
|
|
131
|
-
huggingface_hub-0.29.
|
|
126
|
+
huggingface_hub-0.29.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
127
|
+
huggingface_hub-0.29.2.dist-info/METADATA,sha256=VS0PA3psKWoUtKA3lgdBLaxhg480QGFJzoWGnTioeWA,13480
|
|
128
|
+
huggingface_hub-0.29.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
129
|
+
huggingface_hub-0.29.2.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
|
|
130
|
+
huggingface_hub-0.29.2.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
131
|
+
huggingface_hub-0.29.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|