import gradio as gr gr.load("models/puyao/whisper-small-hi").launch() def transcribe(audio): text = pipe(audio)["text"] return text iface = gr.Interface( fn=transcribe, inputs=gr.Audio(source="microphone", type="filepath"), outputs="text", title="Whisper Small Chinese", description="Realtime demo for Chinese speech recognition using a fine-tuned Whisper small model.", ) iface.launch()