import gradio as gr | |
# ุชุญู ูู ุงููู ูุฐุฌ | |
model_id = "openai/whisper-small.en" | |
asr = gr.Interface.load(f"huggingface/{model_id}") | |
# ูุงุฌูุฉ Gradio | |
gr.Interface( | |
fn=asr, | |
inputs=gr.Audio(source="upload", type="filepath"), | |
outputs="text", | |
title="Whisper Speech Recognition" | |
).launch() | |