Julien Simon
commited on
Commit
•
f8024d7
1
Parent(s):
66ede47
Update README.md
Browse files
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(
|
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")
|