papasega's picture
Create app.py
d67a990
raw
history blame
289 Bytes
from speechbrain.pretrained import EncoderASR
import gradio as gr
model = EncoderASR.from_hparams("speechbrain/asr-wav2vec2-dvoice-wolof")
def transcribe(audio):
return model.transcribe_file(audio.name)
demo = gr.Interface(fn=transcribe, inputs="file", outputs="text")
demo.launch()