From 6b1fe99bd7d81140a583c365e53ea9a8383d8fb9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 22:43:20 +0900 Subject: [PATCH] chore(format): run black on main (#485) Co-authored-by: github-actions[bot] --- ChatTTS/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChatTTS/core.py b/ChatTTS/core.py index 31433e9a6..01b91ce26 100644 --- a/ChatTTS/core.py +++ b/ChatTTS/core.py @@ -162,7 +162,7 @@ def sample_random_speaker(self) -> str: @staticmethod def _encode_spk_emb(spk_emb: torch.Tensor) -> str: with torch.no_grad(): - arr: np.ndarray = spk_emb.to(dtype=torch.float16, device='cpu').numpy() + arr: np.ndarray = spk_emb.to(dtype=torch.float16, device="cpu").numpy() s = b14.encode_to_string( lzma.compress( arr.tobytes(),