Unverified Commit 373d0d99 authored by Aleksandar Ivanovski's avatar Aleksandar Ivanovski Committed by GitHub
Browse files

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

parent 500dfb5b
...@@ -75,7 +75,7 @@ include a local path to an image or an image url. ...@@ -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'},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment