Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import librosa
|
|
|
3 |
from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
|
4 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
5 |
import torch
|
6 |
-
import librosa
|
7 |
|
8 |
# load model and processor
|
9 |
processor = Wav2Vec2Processor.from_pretrained("jonatasgrosman/wav2vec2-large-xlsr-53-english")
|
|
|
1 |
import gradio as gr
|
2 |
import librosa
|
3 |
+
from optimum.onnxruntime import ORTModelForSeq2SeqLM
|
4 |
from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
|
5 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
6 |
import torch
|
|
|
7 |
|
8 |
# load model and processor
|
9 |
processor = Wav2Vec2Processor.from_pretrained("jonatasgrosman/wav2vec2-large-xlsr-53-english")
|