Fix incorrect repo address and malformatted code snippets
Browse files
README.md
CHANGED
@@ -68,20 +68,20 @@ Please note that this is a work in progress. This model is released only for tes
|
|
68 |
### Local Setup
|
69 |
To run locally, install the necessary libraries and use the Transformers pipeline:
|
70 |
|
71 |
-
|
72 |
pip install transformers>=4.35.2
|
73 |
-
|
74 |
|
75 |
-
|
76 |
from transformers import pipeline
|
77 |
|
78 |
# Load the distilled model
|
79 |
-
asr = pipeline("automatic-speech-recognition", "NbAiLab/
|
80 |
|
81 |
# Transcribe audio
|
82 |
result = asr("example_audio.mp3", generate_kwargs={'task': 'transcribe', 'language': 'no'})
|
83 |
print(result["text"])
|
84 |
-
|
85 |
|
86 |
---
|
87 |
|
|
|
68 |
### Local Setup
|
69 |
To run locally, install the necessary libraries and use the Transformers pipeline:
|
70 |
|
71 |
+
```bash
|
72 |
pip install transformers>=4.35.2
|
73 |
+
```
|
74 |
|
75 |
+
```python
|
76 |
from transformers import pipeline
|
77 |
|
78 |
# Load the distilled model
|
79 |
+
asr = pipeline("automatic-speech-recognition", "NbAiLab/nb-whisper-large-distil-turbo-beta")
|
80 |
|
81 |
# Transcribe audio
|
82 |
result = asr("example_audio.mp3", generate_kwargs={'task': 'transcribe', 'language': 'no'})
|
83 |
print(result["text"])
|
84 |
+
```
|
85 |
|
86 |
---
|
87 |
|