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
cecf9f9b
Unverified
Commit
cecf9f9b
authored
Aug 24, 2022
by
Yih-Dar
Committed by
GitHub
Aug 24, 2022
Browse files
fix pipeline_tutorial.mdx doctest (#18717)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
a442884b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/en/pipeline_tutorial.mdx
docs/source/en/pipeline_tutorial.mdx
+2
-2
No files found.
docs/source/en/pipeline_tutorial.mdx
View file @
cecf9f9b
...
...
@@ -167,5 +167,5 @@ Create a pipeline for `vqa` and pass it the image and question:
>>> preds = vqa(image=image, question=question)
>>> preds = [{"score": round(pred["score"], 4), "answer": pred["answer"]} for pred in preds]
>>> preds
[{'score': 0.9112, 'answer': 'snow'}, {'score': 0.8796, 'answer': 'in snow'}, {'score': 0.6717, 'answer': 'outside'}, {'score': 0.0291, 'answer': 'on ground'}, {'score': 0.027, 'answer': 'ground'}]
```
\ No newline at end of file
[{'score': 0.911, 'answer': 'snow'}, {'score': 0.8786, 'answer': 'in snow'}, {'score': 0.6714, 'answer': 'outside'}, {'score': 0.0293, 'answer': 'on ground'}, {'score': 0.0272, 'answer': 'ground'}]
```
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