Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Inference Client] fix param docstring and deprecate labels param in zero-shot classification tasks #2668

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

hanouticelina
Copy link
Contributor

This PR does two things:

  • fixes a bug in the parameter docstring formatting when it's not an optional one, see this comment for more context.
  • deprecates labels parameter in InferenceClient.zero_shot_classification and InferenceClient.zero_shot_image_classification in favor of candidate_labels.

This PR should be merged before #2664.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hanouticelina hanouticelina merged commit 48b7b97 into main Nov 20, 2024
17 checks passed
@hanouticelina hanouticelina deleted the fix-param-docstring branch November 20, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants