Create app.py
Browse files123456789101112131415161718from transformers import pipelineimport gradio as gr
pipe = pipeline(model="huseinzol05/emotion-vggvox-v2-quantized") # change to "your-username/the-name-you-picked"
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 Hindi", description="Realtime demo for Hindi speech recognition using a fine-tuned Whisper small model.",)
iface.launch()app.pyAdded+18