Update README.md
Browse files
README.md
CHANGED
@@ -39,7 +39,7 @@ import pandas as pd
|
|
39 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
40 |
model_name_or_path = "m3hrdadfi/wav2vec2-base-100k-voxpopuli-gtzan-music"
|
41 |
config = AutoConfig.from_pretrained(model_name_or_path)
|
42 |
-
feature_extractor =
|
43 |
sampling_rate = feature_extractor.sampling_rate
|
44 |
model = Wav2Vec2ForSpeechClassification.from_pretrained(model_name_or_path).to(device)
|
45 |
```
|
|
|
39 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
40 |
model_name_or_path = "m3hrdadfi/wav2vec2-base-100k-voxpopuli-gtzan-music"
|
41 |
config = AutoConfig.from_pretrained(model_name_or_path)
|
42 |
+
feature_extractor = Wav2Vec2FeatureExtractor.from_pretrained(model_name_or_path)
|
43 |
sampling_rate = feature_extractor.sampling_rate
|
44 |
model = Wav2Vec2ForSpeechClassification.from_pretrained(model_name_or_path).to(device)
|
45 |
```
|