From e7b759f7765627a768b2feaf932e39b827137346 Mon Sep 17 00:00:00 2001 From: zhzluke96 Date: Mon, 24 Jun 2024 22:42:20 +0800 Subject: [PATCH] :bug: fix speaker loader #71 --- modules/webui/webui_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/webui/webui_utils.py b/modules/webui/webui_utils.py index 15056b0..65d871c 100644 --- a/modules/webui/webui_utils.py +++ b/modules/webui/webui_utils.py @@ -217,7 +217,7 @@ def tts_generate( except Exception: raise gr.Error("Failed to load speaker file") - if isinstance(spk.emb, torch.Tensor): + if not isinstance(spk.emb, torch.Tensor): raise gr.Error("Speaker file is not supported") tts_config = ChatTTSConfig(