Spaces:
Build error
Build error
patrickvonplaten
commited on
Commit
•
aca2fbe
1
Parent(s):
0f0fe01
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False)
|
|
11 |
model = SpeechEncoderDecoderModel.from_pretrained(model_name).to(device)
|
12 |
|
13 |
def process_audio_file(file):
|
|
|
14 |
data, sr = librosa.load(file)
|
15 |
if sr != 16000:
|
16 |
data = librosa.resample(data, sr, 16000)
|
|
|
11 |
model = SpeechEncoderDecoderModel.from_pretrained(model_name).to(device)
|
12 |
|
13 |
def process_audio_file(file):
|
14 |
+
|
15 |
data, sr = librosa.load(file)
|
16 |
if sr != 16000:
|
17 |
data = librosa.resample(data, sr, 16000)
|