Update README.md
Browse files
README.md
CHANGED
@@ -94,8 +94,8 @@ There are also potential dual-use concerns that come with releasing Moonshine. W
|
|
94 |
if sr != 16000:
|
95 |
audio = torchaudio.functional.resample(audio, sr, 16000)
|
96 |
|
97 |
-
model = AutoModelForSpeechSeq2Seq.from_pretrained('
|
98 |
-
tokenizer = PreTrainedTokenizerFast.from_pretrained('
|
99 |
|
100 |
tokens = model(audio)
|
101 |
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
|
|
|
94 |
if sr != 16000:
|
95 |
audio = torchaudio.functional.resample(audio, sr, 16000)
|
96 |
|
97 |
+
model = AutoModelForSpeechSeq2Seq.from_pretrained('usefulsensors/moonshine-tiny', trust_remote_code=True)
|
98 |
+
tokenizer = PreTrainedTokenizerFast.from_pretrained('usefulsensors/moonshine-tiny')
|
99 |
|
100 |
tokens = model(audio)
|
101 |
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
|