bryandts's picture
Update app.py
8e4caba verified
raw
history blame
306 Bytes
import gradio as gr
whisper = gr.load("models/bryandts/whisper-base-en-india-accent-svarah")
def transcribe(audio):
return whisper(audio).replace("AutomaticSpeechRecognitionOutput(text=' ", "").replace("', chunks=None)", "")
gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch()