Skip to content

Commit

Permalink
Merge pull request #6 from lenML/main
Browse files Browse the repository at this point in the history
🐛 fix speaker loader lenML#71
  • Loading branch information
WangLaoShi authored Jun 25, 2024
2 parents 04e2c3f + e7b759f commit 4b816dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/webui/webui_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4b816dd

Please sign in to comment.