Spaces:
Build error
Build error
patrickvonplaten
commited on
Commit
•
23eacd8
1
Parent(s):
55633f7
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ from transformers import AutoFeatureExtractor, AutoTokenizer, SpeechEncoderDecod
|
|
4 |
|
5 |
model_name = "facebook/wav2vec2-xls-r-2b-en-to-15"
|
6 |
|
7 |
-
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name,
|
9 |
-
model = SpeechEncoderDecoderModel.from_pretrained(model_name
|
10 |
|
11 |
def process_audio_file(file):
|
12 |
data, sr = librosa.load(file)
|
|
|
4 |
|
5 |
model_name = "facebook/wav2vec2-xls-r-2b-en-to-15"
|
6 |
|
7 |
+
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False)
|
9 |
+
model = SpeechEncoderDecoderModel.from_pretrained(model_name)
|
10 |
|
11 |
def process_audio_file(file):
|
12 |
data, sr = librosa.load(file)
|