From 9f64153a28f8973b3bfffec3738b55a0bd31c086 Mon Sep 17 00:00:00 2001 From: mrq Date: Fri, 31 Mar 2023 06:03:56 +0000 Subject: [PATCH] fixes #185 --- src/webui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webui.py b/src/webui.py index 7a6a03f..a0cf253 100755 --- a/src/webui.py +++ b/src/webui.py @@ -611,7 +611,10 @@ def setup_gradio(): # 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]) + default_valle_model_choice = "" + if len(valle_models): + default_valle_model_choice = valle_models[0] + EXEC_SETTINGS['valle_model'] = gr.Dropdown(choices=valle_models, label="VALL-E Model Config", value=args.valle_model if args.valle_model else default_valle_model_choice) 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")