Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -521,7 +521,7 @@ def create_interface():
|
|
521 |
input_language = gr.Dropdown(input_language_options, label="Select the language", value="English", interactive=True)
|
522 |
|
523 |
with gr.Accordion("Use Voice", open=False) as voice_accordion:
|
524 |
-
audio_input = gr.Audio(label="Speak", type="
|
525 |
audio_output = gr.Markdown(label="Output text") # Markdown component for audio
|
526 |
gr.Examples([["audio1.m4a"],["audio2.m4a"],],inputs=[input_language])
|
527 |
|
|
|
521 |
input_language = gr.Dropdown(input_language_options, label="Select the language", value="English", interactive=True)
|
522 |
|
523 |
with gr.Accordion("Use Voice", open=False) as voice_accordion:
|
524 |
+
audio_input = gr.Audio(label="Speak", type="auto", sources=["microphone", "upload"])
|
525 |
audio_output = gr.Markdown(label="Output text") # Markdown component for audio
|
526 |
gr.Examples([["audio1.m4a"],["audio2.m4a"],],inputs=[input_language])
|
527 |
|