File size: 287 Bytes
9212547
e824905
9212547
e824905
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr
from transformers import pipeline

pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3")

def transcribe(audio):
  return pipe(audio)['text']

app = gr.Interface(transcribe, gr.Audio(sources=["microphone"]), outputs="textbox")

app.launch()