Spaces:
Runtime error
Runtime error
datnth1709
commited on
Commit
•
e6ce204
1
Parent(s):
bfcc104
realtime translate
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def speech2text_vi(audio):
|
|
80 |
"""English speech2text"""
|
81 |
nltk.download("punkt")
|
82 |
# Loading the model and the tokenizer
|
83 |
-
model_name = "facebook/
|
84 |
eng_tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
|
85 |
eng_model = Wav2Vec2ForCTC.from_pretrained(model_name)
|
86 |
|
|
|
80 |
"""English speech2text"""
|
81 |
nltk.download("punkt")
|
82 |
# Loading the model and the tokenizer
|
83 |
+
model_name = "facebook/s2t-small-librispeech-asr"
|
84 |
eng_tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
|
85 |
eng_model = Wav2Vec2ForCTC.from_pretrained(model_name)
|
86 |
|