Spaces:
Running
Running
add tiny model
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import os
|
|
5 |
from faster_whisper import WhisperModel
|
6 |
# tiny, tiny.en, base, base.en, small, small.en, medium, medium.en, large-v1, large-v2, large-v3, or large
|
7 |
model_name = 'tiny.en'
|
8 |
-
model = WhisperModel(model_name, device="cpu")
|
9 |
|
10 |
ydl_opts = {
|
11 |
'outtmpl': 'demo.m4a',
|
|
|
5 |
from faster_whisper import WhisperModel
|
6 |
# tiny, tiny.en, base, base.en, small, small.en, medium, medium.en, large-v1, large-v2, large-v3, or large
|
7 |
model_name = 'tiny.en'
|
8 |
+
model = WhisperModel(model_name, device="cpu", download_root="./models")
|
9 |
|
10 |
ydl_opts = {
|
11 |
'outtmpl': 'demo.m4a',
|