Spaces:
Build error
Build error
Fix: sources=[upload, microphone] - correct Gradio 4.44.1 syntax
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ LANGS = ["Auto-detect","en","fr","ar","zh","de","es","pt","ru","ja","ko","it","n
|
|
| 34 |
demo = gr.Interface(
|
| 35 |
fn=transcribe,
|
| 36 |
inputs=[
|
| 37 |
-
gr.Audio(
|
| 38 |
gr.Radio(["transcribe", "translate"], value="transcribe", label="Task"),
|
| 39 |
gr.Dropdown(LANGS, value="Auto-detect", label="Language"),
|
| 40 |
],
|
|
|
|
| 34 |
demo = gr.Interface(
|
| 35 |
fn=transcribe,
|
| 36 |
inputs=[
|
| 37 |
+
gr.Audio(sources=["upload", "microphone"], type="filepath", label="Audio / Video"),
|
| 38 |
gr.Radio(["transcribe", "translate"], value="transcribe", label="Task"),
|
| 39 |
gr.Dropdown(LANGS, value="Auto-detect", label="Language"),
|
| 40 |
],
|