Spaces:
Build error
Build error
Commit
·
1e0476f
1
Parent(s):
3e26ef1
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import numpy as np
|
|
| 9 |
import subprocess
|
| 10 |
from pywhispercpp.model import Model
|
| 11 |
|
| 12 |
-
model = Model('base.en', n_threads=6)
|
| 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")
|
| 13 |
|
| 14 |
def resample_to_16k(audio, orig_sr):
|
| 15 |
y_resampled = librosa.resample(y=audio, orig_sr=orig_sr, target_sr = 16000)
|