Fix example in Wav2Vec2 documentation (#10096)

* Fix example in Wav2Vec2 documentation

* fix style
This commit is contained in:
abhishek thakur 2021-02-09 12:07:56 +01:00 committed by GitHub
parent bf1a06a437
commit 4ed763779e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -768,7 +768,8 @@ class Wav2Vec2ForCTC(Wav2Vec2PreTrainedModel):
Example::
>>> from transformers import Wav2Vec2Tokenizer, Wav2Vec2Model
>>> import torch
>>> from transformers import Wav2Vec2Tokenizer, Wav2Vec2ForCTC
>>> from datasets import load_dataset
>>> import soundfile as sf