Spaces:
Build error
Build error
Commit
·
411f418
1
Parent(s):
b2ee53d
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,6 @@ 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 |
-
|
15 |
data, sr = librosa.load(file)
|
16 |
if sr != 16000:
|
17 |
data = librosa.resample(data, sr, 16000)
|
|
|
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)
|