From c1f9e6aac670558523f003fc41e0424a13b2c6f6 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 25 Dec 2025 17:37:56 -0800 Subject: [PATCH] ... --- lib/gradio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gradio.py b/lib/gradio.py index 4cf8bb40..86c1c847 100644 --- a/lib/gradio.py +++ b/lib/gradio.py @@ -1201,7 +1201,7 @@ def build_interface(args:dict)->gr.Blocks: for dir in os.listdir(custom_model_tts_dir) if os.path.isdir(os.path.join(custom_model_tts_dir, dir)) ] - session['custom_model'] = session['custom_model'] if session['custom_model'] in [option[1] for option in custom_model_options] else custom_model_options[0][1] + session['custom_model'] = session['custom_model'] if session['custom_model'] in [option[1] for option in custom_model_options] else custom_model_options[0][1] else session['custom_model'] model_paths = {v[1] for v in custom_model_options} return gr.update(choices=custom_model_options, value=session['custom_model']) except Exception as e: