File size: 459 Bytes
8a71804
 
 
d8eee5b
8a71804
 
 
 
 
 
 
 
 
 
 
 
 
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="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)