sukantan/speech2text
0
1 2from transformers import pipeline3import gradio as gr4 5pipe = pipeline(model="Ranjit/Whisper_Small_Odia_10k_steps") # change to "your-username/the-name-you-picked"6 7def transcribe(audio):8 text = pipe(audio)["text"]9 return text10 11iface = gr.Interface(12 fn=transcribe, 13 inputs=gr.Audio(source="microphone", type="filepath"), 14 outputs="text",15 title="Whisper Small Odia",16 description="Realtime demo for Odia speech recognition using a fine-tuned Whisper small model.",17)18 19iface.launch()