Spaces:
Runtime error
Runtime error
| from transformers import pipeline | |
| import gradio as gr | |
| pipe = pipeline(model="marcsixtysix/whisper-tiny-pl") | |
| def transcribe(audio): | |
| text = pipe(audio)["text"] | |
| return text | |
| demo = gr.Interface( | |
| fn=transcribe, | |
| inputs=gr.Audio(type="filepath"), | |
| outputs="text", | |
| title="Whisper Tiny Polish", | |
| description="Realtime demo for Polish speech recognition using a fine-tuned Whisper Tiny model for mobile devices.", | |
| ) | |
| demo.launch(share=True) | |