[docs] Fix model reference in zero shot image classification example (#26206)
This commit is contained in:
committed by
GitHub
parent
500dfb5b03
commit
373d0d9985
@@ -75,7 +75,7 @@ include a local path to an image or an image url.
|
|||||||
The candidate labels can be simple words like in this example, or more descriptive.
|
The candidate labels can be simple words like in this example, or more descriptive.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
>>> predictions = classifier(image, candidate_labels=["fox", "bear", "seagull", "owl"])
|
>>> predictions = detector(image, candidate_labels=["fox", "bear", "seagull", "owl"])
|
||||||
>>> predictions
|
>>> predictions
|
||||||
[{'score': 0.9996670484542847, 'label': 'owl'},
|
[{'score': 0.9996670484542847, 'label': 'owl'},
|
||||||
{'score': 0.000199399160919711, 'label': 'seagull'},
|
{'score': 0.000199399160919711, 'label': 'seagull'},
|
||||||
|
|||||||
Reference in New Issue
Block a user