Julien Simon commited on
Commit
f8024d7
1 Parent(s): 66ede47

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -55,7 +55,7 @@ You can also use with the ```Auto```API:
55
  ```
56
  >>> import torch, librosa
57
  >>> from transformers import AutoModelForAudioClassification, Wav2Vec2FeatureExtractor
58
- >>> feature_extractor = Wav2Vec2FeatureExtractor(feature_size=1, sampling_rate=16000, padding_value=0.0, do_normalize=True, return_attention_mask=False)
59
  >>> model = AutoModelForAudioClassification.from_pretrained("juliensimon/wav2vec2-conformer-rel-pos-large-finetuned-speech-commands")
60
  >>> audio, rate = librosa.load("up16k.wav", sr = 16000)
61
  >>> inputs = feature_extractor(audio, sampling_rate=16000, return_tensors = "pt")
 
55
  ```
56
  >>> import torch, librosa
57
  >>> from transformers import AutoModelForAudioClassification, Wav2Vec2FeatureExtractor
58
+ >>> feature_extractor = Wav2Vec2FeatureExtractor()
59
  >>> model = AutoModelForAudioClassification.from_pretrained("juliensimon/wav2vec2-conformer-rel-pos-large-finetuned-speech-commands")
60
  >>> audio, rate = librosa.load("up16k.wav", sr = 16000)
61
  >>> inputs = feature_extractor(audio, sampling_rate=16000, return_tensors = "pt")