Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -602,10 +602,12 @@ def on_language_change(language):
|
|
602 |
|
603 |
|
604 |
with gr.Blocks(theme='ParityError/Anime') as iface:
|
|
|
605 |
with gr.Row() as language_selection:
|
606 |
-
input_language = gr.Dropdown(languages, label="Select the language", value="English", interactive=True
|
|
|
607 |
components['language_selection'] = language_selection
|
608 |
-
|
609 |
with gr.Accordion("Speech to Text", open=False) as speech_to_text:
|
610 |
audio_input = gr.Audio(label="Speak", type="filepath", sources="microphone")
|
611 |
audio_output = gr.Markdown(label="Output text")
|
|
|
602 |
|
603 |
|
604 |
with gr.Blocks(theme='ParityError/Anime') as iface:
|
605 |
+
|
606 |
with gr.Row() as language_selection:
|
607 |
+
input_language = gr.Dropdown(languages, label="Select the language", value="English", interactive=True)
|
608 |
+
input_language.change(on_language_change)
|
609 |
components['language_selection'] = language_selection
|
610 |
+
|
611 |
with gr.Accordion("Speech to Text", open=False) as speech_to_text:
|
612 |
audio_input = gr.Audio(label="Speak", type="filepath", sources="microphone")
|
613 |
audio_output = gr.Markdown(label="Output text")
|