whisper-mcp / app.py
freddyaboulton's picture
Update app.py
72e4b52 verified
raw
history blame contribute delete
410 Bytes
import gradio as gr
whisper = gr.load("models/openai/whisper-small")
def transcribe(audio):
"""Transcribes audio
Args:
audio: A tuple of (sample_rate, numpy array) corresponding to the audio
Returns:
transcription (str): The transcription of the audio
"""
return "fake transcription"
gr.Interface(transcribe, gr.Audio(type="numpy"), gr.Textbox()).launch(mcp_server=True)