Update README.md
Browse files
README.md
CHANGED
@@ -63,14 +63,10 @@ from torch import nn
|
|
63 |
import torchaudio.transforms as T
|
64 |
from datasets import load_dataset
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
commit_hash='b74e8bdecaa1aa58bbd1fd752a7db0695194d9bb'# this is recommended for security reason, the hash might be updated
|
70 |
# loading our model weights
|
71 |
-
model = AutoModel.from_pretrained("m-a-p/MERT-v1-330M", trust_remote_code=True
|
72 |
# loading the corresponding preprocessor config
|
73 |
-
processor = Wav2Vec2FeatureExtractor.from_pretrained("m-a-p/MERT-v1-330M",trust_remote_code=True
|
74 |
|
75 |
# load demo audio and set processor
|
76 |
dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
|
|
|
63 |
import torchaudio.transforms as T
|
64 |
from datasets import load_dataset
|
65 |
|
|
|
|
|
|
|
|
|
66 |
# loading our model weights
|
67 |
+
model = AutoModel.from_pretrained("m-a-p/MERT-v1-330M", trust_remote_code=True)
|
68 |
# loading the corresponding preprocessor config
|
69 |
+
processor = Wav2Vec2FeatureExtractor.from_pretrained("m-a-p/MERT-v1-330M",trust_remote_code=True)
|
70 |
|
71 |
# load demo audio and set processor
|
72 |
dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
|