Spaces:
Sleeping
Sleeping
| 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() | |