import gradio as gr whisper = gr.load("models/openai/whisper-small") def transcribe(audio): return whisper(audio) gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch()