BenDaouda's picture
Update app.py
9037e2d
raw
history blame
324 Bytes
import requests
import gradio as gr
from transformers import pipeline
p = pipeline("wav2vec2-large-xls-r-300m-wolof-test-coloab")
def transcribe(audio):
text = p(audio)["text"]
return text
iface = gr.Interface(fn=transcribe,inputs=gr.Audio(source="microphone", type="filepath"),outputs="text")
iface.launch()