Update app.py
Browse files
app.py
CHANGED
@@ -22,14 +22,14 @@ def transcribe_speech(filepath):
|
|
22 |
# Define the Gradio interface for microphone input
|
23 |
mic_transcribe = gr.Interface(
|
24 |
fn=transcribe_speech,
|
25 |
-
inputs=gr.Audio(
|
26 |
outputs=gr.Textbox(),
|
27 |
)
|
28 |
|
29 |
# Define the Gradio interface for file upload input
|
30 |
file_transcribe = gr.Interface(
|
31 |
fn=transcribe_speech,
|
32 |
-
inputs=gr.Audio(
|
33 |
outputs=gr.Textbox(),
|
34 |
)
|
35 |
|
|
|
22 |
# Define the Gradio interface for microphone input
|
23 |
mic_transcribe = gr.Interface(
|
24 |
fn=transcribe_speech,
|
25 |
+
inputs=gr.Audio(sources="microphone", type="filepath"),
|
26 |
outputs=gr.Textbox(),
|
27 |
)
|
28 |
|
29 |
# Define the Gradio interface for file upload input
|
30 |
file_transcribe = gr.Interface(
|
31 |
fn=transcribe_speech,
|
32 |
+
inputs=gr.Audio(sources="upload", type="filepath"),
|
33 |
outputs=gr.Textbox(),
|
34 |
)
|
35 |
|