Spaces:
Sleeping
Sleeping
File size: 512 Bytes
1a4e81e a48a315 1a4e81e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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() |