From 02beb1dd8e2a9215538f54eb80e2ff39168d292a Mon Sep 17 00:00:00 2001 From: mrq Date: Thu, 13 Apr 2023 03:14:06 +0000 Subject: [PATCH] should fix #203 --- src/utils.py | 1 - src/webui.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.py b/src/utils.py index 0e1c504..1c7f8bd 100755 --- a/src/utils.py +++ b/src/utils.py @@ -75,7 +75,6 @@ try: VALLE_ENABLED = True except Exception as e: - print(e) pass if VALLE_ENABLED: diff --git a/src/webui.py b/src/webui.py index 42dfcdf..40b47c8 100755 --- a/src/webui.py +++ b/src/webui.py @@ -656,8 +656,9 @@ def setup_gradio(): EXEC_SETTINGS['results_folder'] = gr.Textbox(label="Results Folder", value=args.results_folder) # EXEC_SETTINGS['tts_backend'] = gr.Dropdown(TTSES, label="TTS Backend", value=args.tts_backend if args.tts_backend else TTSES[0]) - with gr.Column(visible=args.tts_backend=="vall-e"): - EXEC_SETTINGS['valle_model'] = gr.Dropdown(choices=valle_models, label="VALL-E Model Config", value=args.valle_model if args.valle_model else valle_models[0]) + if args.tts_backend=="vall-e": + with gr.Column(): + EXEC_SETTINGS['valle_model'] = gr.Dropdown(choices=valle_models, label="VALL-E Model Config", value=args.valle_model if args.valle_model else valle_models[0]) with gr.Column(visible=args.tts_backend=="tortoise"): EXEC_SETTINGS['autoregressive_model'] = gr.Dropdown(choices=["auto"] + autoregressive_models, label="Autoregressive Model", value=args.autoregressive_model if args.autoregressive_model else "auto")