Spaces:
Running
Running
Update app.py
Browse files
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="
|
|
|
|
| 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)
|