From e52fb6b250c731ae2014dcee465f7c8146ef0549 Mon Sep 17 00:00:00 2001 From: Lucain Pouget Date: Tue, 4 Feb 2025 12:23:57 +0100 Subject: [PATCH] widget --- src/huggingface_hub/inference/_client.py | 4 ++-- src/huggingface_hub/inference/_generated/_async_client.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/huggingface_hub/inference/_client.py b/src/huggingface_hub/inference/_client.py index 10a761dd5f..98b951bd40 100644 --- a/src/huggingface_hub/inference/_client.py +++ b/src/huggingface_hub/inference/_client.py @@ -2424,8 +2424,8 @@ def text_to_image( One prompt to guide what NOT to include in image generation. height (`int`, *optional*): The height in pixels of the output image - width (`float`, *optional*): - The width in pixels of the image to generate. + width (`int`, *optional*): + The width in pixels of the output image num_inference_steps (`int`, *optional*): The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference. diff --git a/src/huggingface_hub/inference/_generated/_async_client.py b/src/huggingface_hub/inference/_generated/_async_client.py index ed430ee208..3c814aca91 100644 --- a/src/huggingface_hub/inference/_generated/_async_client.py +++ b/src/huggingface_hub/inference/_generated/_async_client.py @@ -2480,8 +2480,8 @@ async def text_to_image( One prompt to guide what NOT to include in image generation. height (`int`, *optional*): The height in pixels of the output image - width (`float`, *optional*): - The width in pixels of the image to generate. + width (`int`, *optional*): + The width in pixels of the output image num_inference_steps (`int`, *optional*): The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference.