change to filepath
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ gradio_ui = gr.Interface(
|
|
31 |
fn=transcribe,
|
32 |
title="East african languages Speech Recognition",
|
33 |
description="Upload an audio clip or record from browser using microphone, and let AI do the hard work of transcribing. The supported languages are Kinyarwanda, Swahili and Luganda",
|
34 |
-
inputs=[gr.inputs.Audio(label="Upload Audio File", type="filepath", optional=True), gr.inputs.Audio(source="microphone", type="
|
35 |
outputs=[gr.outputs.Textbox(label="Recognized speech")]
|
36 |
)
|
37 |
gradio_ui.launch(enable_queue=True)
|
|
|
31 |
fn=transcribe,
|
32 |
title="East african languages Speech Recognition",
|
33 |
description="Upload an audio clip or record from browser using microphone, and let AI do the hard work of transcribing. The supported languages are Kinyarwanda, Swahili and Luganda",
|
34 |
+
inputs=[gr.inputs.Audio(label="Upload Audio File", type="filepath", optional=True), gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Record from microphone")],
|
35 |
outputs=[gr.outputs.Textbox(label="Recognized speech")]
|
36 |
)
|
37 |
gradio_ui.launch(enable_queue=True)
|