Skip to content

Commit

Permalink
🐛 fix speaker loader lenML#71
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzLuke96 committed Jun 24, 2024
1 parent 304c318 commit e7b759f
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 e7b759f

Please sign in to comment.