File size: 410 Bytes
990b4f2
 
f9c8e63
 
 
72e4b52
 
 
 
 
 
e41725c
f9c8e63
72e4b52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)