Spaces:
Runtime error
Runtime error
File size: 324 Bytes
1f855d9 9037e2d 1f855d9 9037e2d 1f855d9 9037e2d 1f855d9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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() |