whisper-it / app.py
GIanlucaRub's picture
Create app.py
d6a25cd
raw
history blame
512 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="GIanlucaRub/whisper-tiny-it-local") # 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 Tiny Italian",
description="Realtime demo for Italian speech recognition using a fine-tuned Whisper small model.",
)
iface.launch()