whisperer_app / app.py
owwe
Merge branch 'main' of https://huggingface.co/spaces/Kiwipirate/whisperer_app
5be3c31
raw
history blame
519 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(
model="Kiwipirate/whisper-small-tr-cp2"
) # 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(sources="microphone", type="filepath"),
outputs="text",
title="Whisper Small Turkish",
description="Realtime demo for Turkish speech recognition using a fine-tuned Whisper small model.",
)
iface.launch()