gianTheo's picture
Update app.py
a48a315
raw
history blame
512 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="Sandiago21/whisper-large-v2-greek") # 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()