Futuresony's picture
Update app.py
f4cd8f2 verified
raw
history blame
283 Bytes
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()