Commit ·
f8dee97
1
Parent(s): 9eb40c2
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,7 +23,10 @@ This model can be used in CTranslate2 or projects based on CTranslate2 such as [
|
|
| 23 |
```python
|
| 24 |
from faster_whisper import WhisperModel
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
segments, info = model.transcribe("audio.mp3")
|
| 29 |
for segment in segments:
|
|
|
|
| 23 |
```python
|
| 24 |
from faster_whisper import WhisperModel
|
| 25 |
|
| 26 |
+
# load from local folder
|
| 27 |
+
# model = WhisperModel("whisper-small-dv-ct2")
|
| 28 |
+
# load from the hub
|
| 29 |
+
model = WhisperModel("davidggphy/whisper-small-dv-ct2")
|
| 30 |
|
| 31 |
segments, info = model.transcribe("audio.mp3")
|
| 32 |
for segment in segments:
|