File size: 283 Bytes
3c2fc1b
 
 
f4cd8f2
3c2fc1b
 
f4cd8f2
3c2fc1b
f4cd8f2
1
2
3
4
5
6
7
8
9

import gradio as gr

whisper = gr.load("Futuresony/whisper-small-sw")

def transcribe(audio):
    return whisper(audio).replace("AutomaticSpeechRecognitionOutput(text=' ", "").replace("', chunks=None)", "")

gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch()