File size: 432 Bytes
af6371c
 
 
324fd38
 
af6371c
 
10372dd
af6371c
 
324fd38
af6371c
324fd38
 
af6371c
 
 
 
 
324fd38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from transformers import pipeline
import gradio as gr

pipe = pipeline(model="sonnygeorge/whisper-tiny-papi")


def transcribe(audio):
    text = pipe(audio[1])["text"]
    return text


iface = gr.Interface(
    fn=transcribe,
    inputs=gr.Audio(),
    outputs="text",
    title="Whisper Tiny Papiamentu",
    description="Realtime demo for Papiamentu speech recognition using a fine-tuned Whisper tiny model.",
)

iface.launch()