gianTheo's picture
Update app.py
4e08dc5
raw
history blame
504 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="farsipal/whisper-small-el") # 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 Greek Transcription",
description="Realtime demo for Greek speech recognition using a fine-tuned Whisper model.",
)
iface.launch()