Spaces:
Sleeping
Sleeping
Commit
·
3d22a7a
1
Parent(s):
d2ce17f
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,8 @@ import numpy as np
|
|
9 |
import subprocess
|
10 |
from pywhispercpp.model import Model
|
11 |
|
12 |
-
model = Model('base.en', n_threads=6,models_dir="./Models")
|
|
|
13 |
|
14 |
def resample_to_16k(audio, orig_sr):
|
15 |
y_resampled = librosa.resample(y=audio, orig_sr=orig_sr, target_sr = 16000)
|
|
|
9 |
import subprocess
|
10 |
from pywhispercpp.model import Model
|
11 |
|
12 |
+
# model = Model('base.en', n_threads=6,models_dir="./Models") # Only english
|
13 |
+
model = Model('base', n_threads=6,models_dir="./Models") # Multilingual
|
14 |
|
15 |
def resample_to_16k(audio, orig_sr):
|
16 |
y_resampled = librosa.resample(y=audio, orig_sr=orig_sr, target_sr = 16000)
|