revert to gradio version 3.11
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: π
|
|
4 |
colorFrom: red
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: red
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.11.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
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="
|
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="file", optional=True), gr.inputs.Audio(source="microphone", type="file", optional=True, label="Record from microphone")],
|
35 |
outputs=[gr.outputs.Textbox(label="Recognized speech")]
|
36 |
)
|
37 |
gradio_ui.launch(enable_queue=True)
|