Spaces:
Running
Running
| 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) |