Skip to content

Commit 0b2985a

Browse files
Wauplingithub-actions[bot]
authored andcommitted
Update inference types (automated commit)
1 parent 88c5f09 commit 0b2985a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/huggingface_hub/inference/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ def image_to_image(
12871287
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
12881288
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.
12891289
target_size (`ImageToImageTargetSize`, *optional*):
1290-
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.
1290+
The size in pixel of the output image.
12911291
12921292
Returns:
12931293
`Image`: The translated image.

src/huggingface_hub/inference/_generated/_async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ async def image_to_image(
13321332
The model to use for inference. Can be a model ID hosted on the Hugging Face Hub or a URL to a deployed
13331333
Inference Endpoint. This parameter overrides the model defined at the instance level. Defaults to None.
13341334
target_size (`ImageToImageTargetSize`, *optional*):
1335-
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.
1335+
The size in pixel of the output image.
13361336
13371337
Returns:
13381338
`Image`: The translated image.

src/huggingface_hub/inference/_generated/types/image_to_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ImageToImageParameters(BaseInferenceType):
3333
prompt: Optional[str] = None
3434
"""The text prompt to guide the image generation."""
3535
target_size: Optional[ImageToImageTargetSize] = None
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."""
36+
"""The size in pixel of the output image."""
3737

3838

3939
@dataclass_with_extra

0 commit comments

Comments
 (0)