Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
373d0d99
Unverified
Commit
373d0d99
authored
Sep 19, 2023
by
Aleksandar Ivanovski
Committed by
GitHub
Sep 19, 2023
Browse files
[docs] Fix model reference in zero shot image classification example (#26206)
parent
500dfb5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/en/tasks/zero_shot_image_classification.md
docs/source/en/tasks/zero_shot_image_classification.md
+1
-1
No files found.
docs/source/en/tasks/zero_shot_image_classification.md
View file @
373d0d99
...
...
@@ -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
=
classifie
r
(
image
,
candidate_labels
=
[
"fox"
,
"bear"
,
"seagull"
,
"owl"
])
>>>
predictions
=
detecto
r
(
image
,
candidate_labels
=
[
"fox"
,
"bear"
,
"seagull"
,
"owl"
])
>>>
predictions
[{
'score'
:
0.9996670484542847
,
'label'
:
'owl'
},
{
'score'
:
0.000199399160919711
,
'label'
:
'seagull'
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment