Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ demo = gr.Blocks()
|
|
| 30 |
|
| 31 |
mic_transcribe = gr.Interface(
|
| 32 |
fn=transcribe_speech,
|
| 33 |
-
inputs=gr.Audio(
|
| 34 |
outputs=gr.outputs.Textbox(),
|
| 35 |
tilte=title,
|
| 36 |
description=description,
|
|
@@ -38,7 +38,7 @@ mic_transcribe = gr.Interface(
|
|
| 38 |
|
| 39 |
file_transcribe = gr.Interface(
|
| 40 |
fn=transcribe_speech,
|
| 41 |
-
inputs=gr.Audio(
|
| 42 |
outputs=gr.outputs.Textbox(),
|
| 43 |
examples=[["./example.wav"]],
|
| 44 |
tilte=title,
|
|
|
|
| 30 |
|
| 31 |
mic_transcribe = gr.Interface(
|
| 32 |
fn=transcribe_speech,
|
| 33 |
+
inputs=gr.Audio(sources="microphone", type="filepath"),
|
| 34 |
outputs=gr.outputs.Textbox(),
|
| 35 |
tilte=title,
|
| 36 |
description=description,
|
|
|
|
| 38 |
|
| 39 |
file_transcribe = gr.Interface(
|
| 40 |
fn=transcribe_speech,
|
| 41 |
+
inputs=gr.Audio(sources="upload", type="filepath"),
|
| 42 |
outputs=gr.outputs.Textbox(),
|
| 43 |
examples=[["./example.wav"]],
|
| 44 |
tilte=title,
|