File size: 331 Bytes
f45e20d
c0c1d35
 
f45e20d
b1927c9
c0c1d35
f45e20d
c0c1d35
b1927c9
688179c
c0c1d35
f45e20d
1
2
3
4
5
6
7
8
9
10
11
12
13
import fn
import gradio as gr

fn.load_model('large-v3')

gr.Interface(
    fn=fn.speech_to_text,
    inputs=[
        gr.Audio(sources="upload", type="filepath"),
        gr.Dropdown(value='large-v3', choices=["tiny", "base", "small", "medium", "large", "large-v2", "large-v3"]),
        ],
    outputs=["text", "text"]).launch()