Spaces:
Running
on
Zero
Running
on
Zero
Add Whisper speech recognition demo using Gradio
Browse files
app.py
CHANGED
@@ -7,5 +7,5 @@ pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3")
|
|
7 |
def transcribe_audio(audio):
|
8 |
return pipe(audio)
|
9 |
|
10 |
-
demo = gr.Interface(fn=transcribe_audio, inputs="
|
11 |
demo.launch()
|
|
|
7 |
def transcribe_audio(audio):
|
8 |
return pipe(audio)
|
9 |
|
10 |
+
demo = gr.Interface(fn=transcribe_audio, inputs=gr.Audio(source="upload", type="filepath"), outputs="text")
|
11 |
demo.launch()
|