Update README.md
Browse files
README.md
CHANGED
@@ -12,4 +12,12 @@ pipeline_tag: automatic-speech-recognition
|
|
12 |
from transformers import pipeline
|
13 |
|
14 |
pipe = pipeline("automatic-speech-recognition", model="seba3y/speecht5-asr-punctuation-sensitive")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
```
|
|
|
12 |
from transformers import pipeline
|
13 |
|
14 |
pipe = pipeline("automatic-speech-recognition", model="seba3y/speecht5-asr-punctuation-sensitive")
|
15 |
+
```
|
16 |
+
|
17 |
+
```py
|
18 |
+
# Load model directly
|
19 |
+
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
|
20 |
+
|
21 |
+
processor = AutoProcessor.from_pretrained("seba3y/speecht5-asr-punctuation-sensitive")
|
22 |
+
model = AutoModelForSpeechSeq2Seq.from_pretrained("seba3y/speecht5-asr-punctuation-sensitive")
|
23 |
```
|