File size: 282 Bytes
990b4f2 f9c8e63 f1aaf59 f9c8e63 38b97fa |
1 2 3 4 5 6 7 8 |
import gradio as gr
whisper = gr.load("models/openai/whisper-small")
def transcribe(audio):
return whisper(audio).replace("AutomaticSpeechRecognitionOutput(text=' ", "").replace("', chunks=None)", "")
gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch() |