Spaces:
Build error
Build error
Commit
•
8ace0d6
1
Parent(s):
00349e4
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
|
|
2 |
import librosa
|
3 |
from transformers import AutoFeatureExtractor, AutoTokenizer, SpeechEncoderDecoderModel
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
|
9 |
feature_extractor = tokenizer = model = None
|
10 |
|
|
|
2 |
import librosa
|
3 |
from transformers import AutoFeatureExtractor, AutoTokenizer, SpeechEncoderDecoderModel
|
4 |
|
5 |
+
feature_extractor = AutoFeatureExtractor.from_pretrained("facebook/wav2vec2-xls-r-300m-en-to-15")
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("facebook/wav2vec2-xls-r-300m-en-to-15", use_fast=False)
|
7 |
+
model = SpeechEncoderDecoderModel.from_pretrained("facebook/wav2vec2-xls-r-300m-en-to-15")
|
8 |
|
9 |
feature_extractor = tokenizer = model = None
|
10 |
|