Update app.py
Browse files
app.py
CHANGED
|
@@ -21,11 +21,11 @@ def transcribe(audio):
|
|
| 21 |
return result.text
|
| 22 |
|
| 23 |
|
| 24 |
-
|
| 25 |
title = 'OpenAI-Whisper Audio to Text Web UI',
|
| 26 |
fn=transcribe,
|
| 27 |
inputs=[
|
| 28 |
-
|
| 29 |
],
|
| 30 |
outputs=[
|
| 31 |
"textbox"
|
|
|
|
| 21 |
return result.text
|
| 22 |
|
| 23 |
|
| 24 |
+
gr.Interface(
|
| 25 |
title = 'OpenAI-Whisper Audio to Text Web UI',
|
| 26 |
fn=transcribe,
|
| 27 |
inputs=[
|
| 28 |
+
gr.Audio(source="microphone", type="filepath")
|
| 29 |
],
|
| 30 |
outputs=[
|
| 31 |
"textbox"
|