Skip to content

Commit

Permalink
remove text_to_image arg deprecation for now
Browse files Browse the repository at this point in the history
  • Loading branch information
hanouticelina committed Oct 24, 2024
1 parent 48865a4 commit 81532e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/huggingface_hub/inference/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2343,11 +2343,6 @@ def text_generation(

return TextGenerationOutput.parse_obj_as_instance(data) if details else data["generated_text"]

@_deprecate_arguments(
version="0.30",
deprecated_args=["width", "height"],
custom_message="The `width`, `height` parameters are deprecated and will be removed in version 0.30.",
)
def text_to_image(
self,
prompt: str,
Expand Down
5 changes: 0 additions & 5 deletions src/huggingface_hub/inference/_generated/_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2407,11 +2407,6 @@ async def text_generation(

return TextGenerationOutput.parse_obj_as_instance(data) if details else data["generated_text"]

@_deprecate_arguments(
version="0.30",
deprecated_args=["width", "height"],
custom_message="The `width`, `height` parameters are deprecated and will be removed in version 0.30.",
)
async def text_to_image(
self,
prompt: str,
Expand Down

0 comments on commit 81532e0

Please sign in to comment.