Spaces:
Build error
Build error
Update app/app.py
Browse files- app/app.py +3 -5
app/app.py
CHANGED
|
@@ -59,13 +59,11 @@ def set_lang_vis(transcription_options):
|
|
| 59 |
if 'Automatic Language Detection' in transcription_options:
|
| 60 |
text = w
|
| 61 |
return [gr.Dropdown.update(visible=False),
|
| 62 |
-
gr.Textbox.update(visible=True)
|
| 63 |
-
text]
|
| 64 |
else:
|
| 65 |
text = ""
|
| 66 |
return [gr.Dropdown.update(visible=True),
|
| 67 |
-
gr.Textbox.update(visible=False)
|
| 68 |
-
text]
|
| 69 |
|
| 70 |
|
| 71 |
def option_verif(language, selected_tran_opts, selected_audint_opts):
|
|
@@ -391,7 +389,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 391 |
transcription_options.change(
|
| 392 |
fn=set_lang_vis,
|
| 393 |
inputs=transcription_options,
|
| 394 |
-
outputs=[language, auto_lang_detect_warning
|
| 395 |
|
| 396 |
# Changing language deselects certain Tran / Audio Intelligence options
|
| 397 |
language.change(
|
|
|
|
| 59 |
if 'Automatic Language Detection' in transcription_options:
|
| 60 |
text = w
|
| 61 |
return [gr.Dropdown.update(visible=False),
|
| 62 |
+
gr.Textbox.update(value=text, visible=True)]
|
|
|
|
| 63 |
else:
|
| 64 |
text = ""
|
| 65 |
return [gr.Dropdown.update(visible=True),
|
| 66 |
+
gr.Textbox.update(value=text, visible=False)]
|
|
|
|
| 67 |
|
| 68 |
|
| 69 |
def option_verif(language, selected_tran_opts, selected_audint_opts):
|
|
|
|
| 389 |
transcription_options.change(
|
| 390 |
fn=set_lang_vis,
|
| 391 |
inputs=transcription_options,
|
| 392 |
+
outputs=[language, auto_lang_detect_warning])
|
| 393 |
|
| 394 |
# Changing language deselects certain Tran / Audio Intelligence options
|
| 395 |
language.change(
|