huggingface-hub 0.35.2__py3-none-any.whl → 0.35.3__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/_client.py +1 -1
- huggingface_hub/inference/_generated/_async_client.py +1 -1
- huggingface_hub/inference/_generated/types/image_to_image.py +1 -1
- huggingface_hub/inference/_mcp/mcp_client.py +4 -3
- huggingface_hub/inference/_providers/fal_ai.py +2 -0
- {huggingface_hub-0.35.2.dist-info → huggingface_hub-0.35.3.dist-info}/METADATA +1 -1
- {huggingface_hub-0.35.2.dist-info → huggingface_hub-0.35.3.dist-info}/RECORD +12 -12
- {huggingface_hub-0.35.2.dist-info → huggingface_hub-0.35.3.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.35.2.dist-info → huggingface_hub-0.35.3.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.35.2.dist-info → huggingface_hub-0.35.3.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.35.2.dist-info → huggingface_hub-0.35.3.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -1297,7 +1297,7 @@ class InferenceClient:
|
|
|
1297
1297
|
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
|
|
1298
1298
|
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.
|
|
1299
1299
|
target_size (`ImageToImageTargetSize`, *optional*):
|
|
1300
|
-
The size in pixel of the output image.
|
|
1300
|
+
The size in pixel of the output image. This parameter is only supported by some providers and for specific models. It will be ignored when unsupported.
|
|
1301
1301
|
|
|
1302
1302
|
Returns:
|
|
1303
1303
|
`Image`: The translated image.
|
|
@@ -1342,7 +1342,7 @@ class AsyncInferenceClient:
|
|
|
1342
1342
|
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
|
|
1343
1343
|
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.
|
|
1344
1344
|
target_size (`ImageToImageTargetSize`, *optional*):
|
|
1345
|
-
The size in pixel of the output image.
|
|
1345
|
+
The size in pixel of the output image. This parameter is only supported by some providers and for specific models. It will be ignored when unsupported.
|
|
1346
1346
|
|
|
1347
1347
|
Returns:
|
|
1348
1348
|
`Image`: The translated image.
|
|
@@ -33,7 +33,7 @@ class ImageToImageParameters(BaseInferenceType):
|
|
|
33
33
|
prompt: Optional[str] = None
|
|
34
34
|
"""The text prompt to guide the image generation."""
|
|
35
35
|
target_size: Optional[ImageToImageTargetSize] = None
|
|
36
|
-
"""The size in pixel of the output image."""
|
|
36
|
+
"""The size in pixel of the output image. This parameter is only supported by some providers and for specific models. It will be ignored when unsupported."""
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
@dataclass_with_extra
|
|
@@ -158,7 +158,7 @@ class MCPClient:
|
|
|
158
158
|
from mcp import types as mcp_types
|
|
159
159
|
|
|
160
160
|
# Extract allowed_tools configuration if provided
|
|
161
|
-
allowed_tools = params.pop("allowed_tools",
|
|
161
|
+
allowed_tools = params.pop("allowed_tools", None)
|
|
162
162
|
|
|
163
163
|
# Determine server type and create appropriate parameters
|
|
164
164
|
if type == "stdio":
|
|
@@ -218,9 +218,10 @@ class MCPClient:
|
|
|
218
218
|
logger.debug("Connected to server with tools:", [tool.name for tool in response.tools])
|
|
219
219
|
|
|
220
220
|
# Filter tools based on allowed_tools configuration
|
|
221
|
-
filtered_tools =
|
|
221
|
+
filtered_tools = response.tools
|
|
222
222
|
|
|
223
|
-
if allowed_tools:
|
|
223
|
+
if allowed_tools is not None:
|
|
224
|
+
filtered_tools = [tool for tool in response.tools if tool.name in allowed_tools]
|
|
224
225
|
logger.debug(
|
|
225
226
|
f"Tool filtering applied. Using {len(filtered_tools)} of {len(response.tools)} available tools: {[tool.name for tool in filtered_tools]}"
|
|
226
227
|
)
|
|
@@ -191,6 +191,8 @@ class FalAIImageToImageTask(FalAIQueueTask):
|
|
|
191
191
|
self, inputs: Any, parameters: Dict, provider_mapping_info: InferenceProviderMapping
|
|
192
192
|
) -> Optional[Dict]:
|
|
193
193
|
image_url = _as_url(inputs, default_mime_type="image/jpeg")
|
|
194
|
+
if "target_size" in parameters:
|
|
195
|
+
parameters["image_size"] = parameters.pop("target_size")
|
|
194
196
|
payload: Dict[str, Any] = {
|
|
195
197
|
"image_url": image_url,
|
|
196
198
|
**filter_none(parameters),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.35.
|
|
3
|
+
Version: 0.35.3
|
|
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=4gQg-gGWyHu_9bLlxIg8jDYQzBz4B4IogNd2Sc64rtw,52476
|
|
2
2
|
huggingface_hub/_commit_api.py,sha256=68HxFnJE2s-QmGZRHQav5kOMTseYV_ZQi04ADaQmZUk,38979
|
|
3
3
|
huggingface_hub/_commit_scheduler.py,sha256=tfIoO1xWHjTJ6qy6VS6HIoymDycFPg0d6pBSZprrU2U,14679
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=ahmbPcEXsJ_JcMb9TDgdkD8Z2z9uytkFG3_1o6dTm8g,17598
|
|
@@ -57,10 +57,10 @@ huggingface_hub/commands/upload_large_folder.py,sha256=_1id84BFtbL8HgFRKZ-el_uPr
|
|
|
57
57
|
huggingface_hub/commands/user.py,sha256=dDpi0mLYvTeYf0fhPVQyEJsn7Wrk6gWvR5YHC6RgebU,7516
|
|
58
58
|
huggingface_hub/commands/version.py,sha256=rGpCbvxImY9eQqXrshYt609Iws27R75WARmKQrIo6Ok,1390
|
|
59
59
|
huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
|
-
huggingface_hub/inference/_client.py,sha256=
|
|
60
|
+
huggingface_hub/inference/_client.py,sha256=g2qnetdPztZZk_LslcyHvSZ-zcfo677ee5S7-uWKemk,157612
|
|
61
61
|
huggingface_hub/inference/_common.py,sha256=dI3OPg0320OOB0FRy_kqftW9F3ghEnBVA5Gi4VaSctg,15778
|
|
62
62
|
huggingface_hub/inference/_generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
|
-
huggingface_hub/inference/_generated/_async_client.py,sha256=
|
|
63
|
+
huggingface_hub/inference/_generated/_async_client.py,sha256=6faC6FQeRP3fXawOcNvkG31_py_ehVSX2H7oHBqpi_0,163521
|
|
64
64
|
huggingface_hub/inference/_generated/types/__init__.py,sha256=9WvrGQ8aThtKSNzZF06j-CIE2ZuItne8FFnea1p1u38,6557
|
|
65
65
|
huggingface_hub/inference/_generated/types/audio_classification.py,sha256=Jg3mzfGhCSH6CfvVvgJSiFpkz6v4nNA0G4LJXacEgNc,1573
|
|
66
66
|
huggingface_hub/inference/_generated/types/audio_to_audio.py,sha256=2Ep4WkePL7oJwcp5nRJqApwviumGHbft9HhXE9XLHj4,891
|
|
@@ -73,7 +73,7 @@ huggingface_hub/inference/_generated/types/feature_extraction.py,sha256=NMWVL_TL
|
|
|
73
73
|
huggingface_hub/inference/_generated/types/fill_mask.py,sha256=OrTgQ7Ndn0_dWK5thQhZwTOHbQni8j0iJcx9llyhRds,1708
|
|
74
74
|
huggingface_hub/inference/_generated/types/image_classification.py,sha256=A-Y024o8723_n8mGVos4TwdAkVL62McGeL1iIo4VzNs,1585
|
|
75
75
|
huggingface_hub/inference/_generated/types/image_segmentation.py,sha256=vrkI4SuP1Iq_iLXc-2pQhYY3SHN4gzvFBoZqbUHxU7o,1950
|
|
76
|
-
huggingface_hub/inference/_generated/types/image_to_image.py,sha256=
|
|
76
|
+
huggingface_hub/inference/_generated/types/image_to_image.py,sha256=gGEUh9xAsyZOcQG82vZepbJAeMZ-7NxvcnE9mcX3AO0,2157
|
|
77
77
|
huggingface_hub/inference/_generated/types/image_to_text.py,sha256=OaFEBAfgT-fOVzJ7xVermGf7VODhrc9-Jg38WrM7-2o,4810
|
|
78
78
|
huggingface_hub/inference/_generated/types/image_to_video.py,sha256=bC-L_cNsDhk4s_IdSiprJ9d1NeMGePLcUp7UPpco21w,2240
|
|
79
79
|
huggingface_hub/inference/_generated/types/object_detection.py,sha256=VuFlb1281qTXoSgJDmquGz-VNfEZLo2H0Rh_F6MF6ts,2000
|
|
@@ -100,7 +100,7 @@ huggingface_hub/inference/_mcp/_cli_hacks.py,sha256=KX9HZJPa1p8ngY3mtYGGlVUXfg4v
|
|
|
100
100
|
huggingface_hub/inference/_mcp/agent.py,sha256=VahvSqldiC1R72CFH4T05l80uEXl5OjLwboWQFUJbsw,4281
|
|
101
101
|
huggingface_hub/inference/_mcp/cli.py,sha256=AmSUT6wXlE6EWmI0SfQgTWYnL07322zGwwk2yMZZlBc,9640
|
|
102
102
|
huggingface_hub/inference/_mcp/constants.py,sha256=kldRfaidXMdyMl_jLosaQomgWDv4shvnFe3dnQNwXSU,2511
|
|
103
|
-
huggingface_hub/inference/_mcp/mcp_client.py,sha256=
|
|
103
|
+
huggingface_hub/inference/_mcp/mcp_client.py,sha256=Cz4x8z3D8xfY5N7EIqrYzjn_Vd6ta_22vWe936UqKbM,16803
|
|
104
104
|
huggingface_hub/inference/_mcp/types.py,sha256=3gq-P_mrmvPI6KWBqjCxavtMPiGz10YXog7wg4oJYAo,941
|
|
105
105
|
huggingface_hub/inference/_mcp/utils.py,sha256=KFsGOC8dytS3VgaugBzibdteWasZ9CAnp83U2SyIlMw,4188
|
|
106
106
|
huggingface_hub/inference/_providers/__init__.py,sha256=m-vZjvrWpiERWdeY_6kc56swXXFTYD0UX3j7M_PBBNk,8873
|
|
@@ -108,7 +108,7 @@ huggingface_hub/inference/_providers/_common.py,sha256=PIeQ3nKatRN9IrqJSWPcm8jGd
|
|
|
108
108
|
huggingface_hub/inference/_providers/black_forest_labs.py,sha256=FIukZoIFt_FDrTTDfpF-Vko5sXnmH0QvVIsMtV2Jzm8,2852
|
|
109
109
|
huggingface_hub/inference/_providers/cerebras.py,sha256=QOJ-1U-os7uE7p6eUnn_P_APq-yQhx28be7c3Tq2EuA,210
|
|
110
110
|
huggingface_hub/inference/_providers/cohere.py,sha256=O3tC-qIUL91mx_mE8bOHCtDWcQuKOUauhUoXSUBUCZ8,1253
|
|
111
|
-
huggingface_hub/inference/_providers/fal_ai.py,sha256=
|
|
111
|
+
huggingface_hub/inference/_providers/fal_ai.py,sha256=pCr5qP6R1W1CrEw-_nKdNuP3UqsUi58yL18w4r7mXRo,9989
|
|
112
112
|
huggingface_hub/inference/_providers/featherless_ai.py,sha256=QxBz-32O4PztxixrIjrfKuTOzvfqyUi-cVsw0Hf_zlY,1382
|
|
113
113
|
huggingface_hub/inference/_providers/fireworks_ai.py,sha256=Id226ITfPkOcFMFzly3MW9l-dZl9l4qizL4JEHWkBFk,1215
|
|
114
114
|
huggingface_hub/inference/_providers/groq.py,sha256=JTk2JV4ZOlaohho7zLAFQtk92kGVsPmLJ1hmzcwsqvQ,315
|
|
@@ -161,9 +161,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=iAaepavFZ5Dhfa5n8KozRfQprKmvcjS
|
|
|
161
161
|
huggingface_hub/utils/logging.py,sha256=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
|
|
162
162
|
huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
|
|
163
163
|
huggingface_hub/utils/tqdm.py,sha256=xAKcyfnNHsZ7L09WuEM5Ew5-MDhiahLACbbN2zMmcLs,10671
|
|
164
|
-
huggingface_hub-0.35.
|
|
165
|
-
huggingface_hub-0.35.
|
|
166
|
-
huggingface_hub-0.35.
|
|
167
|
-
huggingface_hub-0.35.
|
|
168
|
-
huggingface_hub-0.35.
|
|
169
|
-
huggingface_hub-0.35.
|
|
164
|
+
huggingface_hub-0.35.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
165
|
+
huggingface_hub-0.35.3.dist-info/METADATA,sha256=oSPd1weVzFDQEIIV1d7coTtN9uymtjyVlGeftVVqs24,14820
|
|
166
|
+
huggingface_hub-0.35.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
167
|
+
huggingface_hub-0.35.3.dist-info/entry_points.txt,sha256=HIzLhjwPTO7U_ncpW4AkmzAuaadr1ajmYagW5mdb5TM,217
|
|
168
|
+
huggingface_hub-0.35.3.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
169
|
+
huggingface_hub-0.35.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|