Spaces:
Runtime error
Runtime error
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() |