whisper-oriya / app.py
pchopalli's picture
Update app.py
f86fe21 verified
raw
history blame contribute delete
426 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="pchopalli/whisper-small-or")
def transcribe(audio):
text = pipe(audio)["text"]
return text
demo = gr.Interface(
fn=transcribe,
inputs=gr.Audio(type="filepath"),
outputs="text",
title="Whisper Small Oriya",
description="Demo for Oriya speech recognition by fine-tuning a Whisper small model.",
)
demo.launch(share=True)