from transformers import pipeline import gradio as gr pipe = pipeline(model="nvbAI/whisper-small-hindi") def transcribe(audio): text = pipe(audio)["text"] return text iface = gr.Interface( fn=transcribe, inputs=gr.inputs.File(type="file"), outputs="text", title="Whisper Small Hindi", description="Hindi speech recognition using a fine-tuned Whisper small model on CVoice 13", ) iface.launch()