Spaces:
Runtime error
Runtime error
File size: 316 Bytes
fa7931e 8ea39df fa7931e b270fb5 8ea39df |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
from transformers import pipeline
p = pipeline('wannaphong/wav2vec2-large-xlsr-53-th-cv8-deepcut')
def transcribe(audio):
text = p(audio)["text"]
return text
gr.Interface(
fn=transcribe,
inputs=gr.Audio(source="microphone", type="filepath"),
outputs="text").launch()
|