whisper-mcp / app.py
abidlabs's picture
abidlabs HF Staff
Update app.py
f181742 verified
raw
history blame
297 Bytes
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(mcp_server=True)