From cd0fee2aa609b6e0e0a81c71143f14208b4fa57c Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 29 Dec 2025 04:45:38 -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 840ec964..3b307396 100644 --- a/lib/gradio.py +++ b/lib/gradio.py @@ -1174,7 +1174,7 @@ def build_interface(args:dict)->gr.Blocks: if idx + 1 < len(parts): parts[idx + 1] = session['language'] new_voice_path = str(Path(*parts)) - if not any(v[1] == new_voice_path for v in voice_options) and os.path.exists(new_voice_path): + if any(v[1] == new_voice_path for v in voice_options) and os.path.exists(new_voice_path): session['voice'] = new_voice_path else: parts[idx + 1] = 'eng'