dotextension's picture
Update app.py
792266e verified
raw
history blame contribute delete
No virus
435 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="dotextension/whisper-small-bn")
def transcribe(audio):
text = pipe(audio)["text"]
return text
iface = gr.Interface(
fn=transcribe,
inputs=gr.Audio(type="filepath"),
outputs="text",
title="Whisper Small Bangla",
description="Realtime demo for Bangla speech recognition using a fine-tuned Whisper small model.",
)
iface.launch()