File size: 306 Bytes
23dcb77 8e4caba 23dcb77 8e4caba 23dcb77 8e4caba |
1 2 3 4 5 6 7 8 |
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() |