freddyaboulton HF Staff commited on
Commit
72e4b52
·
verified ·
1 Parent(s): e41725c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -3,6 +3,12 @@ import gradio as gr
3
  whisper = gr.load("models/openai/whisper-small")
4
 
5
  def transcribe(audio):
 
 
 
 
 
 
6
  return "fake transcription"
7
 
8
- gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch(mcp_server=True)
 
3
  whisper = gr.load("models/openai/whisper-small")
4
 
5
  def transcribe(audio):
6
+ """Transcribes audio
7
+ Args:
8
+ audio: A tuple of (sample_rate, numpy array) corresponding to the audio
9
+ Returns:
10
+ transcription (str): The transcription of the audio
11
+ """
12
  return "fake transcription"
13
 
14
+ gr.Interface(transcribe, gr.Audio(type="numpy"), gr.Textbox()).launch(mcp_server=True)