kotoba_whisper / app.py
aka7774's picture
Update app.py
688179c verified
raw
history blame
331 Bytes
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()