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

Adding ZeroShotImageClassificationPipeline #12119

Merged
merged 12 commits into from
Feb 23, 2022
Prev Previous commit
Update src/transformers/pipelines/zero_shot_image_classification.py
Co-authored-by: Suraj Patil <[email protected]>
  • Loading branch information
Narsil and patil-suraj committed Feb 17, 2022
commit 7bd23df78d213f1940ca9dce970ba7b023aba47a
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __call__(self, images: Union[str, List[str], "Image", List["Image"]], **kwar
following keys:

- **label** (`str`) -- The label identified by the model. It is one of the suggested `candidate_label`.
- **score** (`int`) -- The score attributed by the model for that label (between 0 and 1).
- **score** (`float`) -- The score attributed by the model for that label (between 0 and 1).
"""
return super().__call__(images, **kwargs)

Expand Down