[docs] Fix model reference in zero shot image classification example (#26206)

This commit is contained in:
Aleksandar Ivanovski
2023-09-19 00:45:12 +02:00
committed by GitHub
parent 500dfb5b03
commit 373d0d9985

View File

@@ -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.
```py
>>> predictions = classifier(image, candidate_labels=["fox", "bear", "seagull", "owl"])
>>> predictions = detector(image, candidate_labels=["fox", "bear", "seagull", "owl"])
>>> predictions
[{'score': 0.9996670484542847, 'label': 'owl'},
{'score': 0.000199399160919711, 'label': 'seagull'},