Spaces:
Sleeping
Sleeping
File size: 318 Bytes
b0cb96e c008816 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from transformers import pipeline
import gradio as gr
model = pipeline("automatic-speech-recognition")
def transcribe_audio(audio):
transcription = model(audio)["text"]
return transcription
gr.Interface(
fn=transcribe_audio,
inputs=gr.Audio(type="filepath"),
outputs="text",
).launch(debug=True) |