deepakkumar07's picture
Uploading whisper small tamil model demo app.py
c044678 verified
raw
history blame
523 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(task="transcribe", model="deepakkumar07/whisper-small-tamil")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
fn=transcribe,
inputs=gr.Audio(sources=["microphone", "upload"], type="filepath"),
outputs="text",
title="Whisper Small Tamil",
description="Realtime demo for Tamil speech recognition using a fine-tuned Whisper small model.",
)
if __name__ == "__main__":
iface.launch()