Skip to content

Commit

Permalink
chore(format): run black on main (#485)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jun 27, 2024
1 parent 5207a40 commit 6b1fe99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChatTTS/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 6b1fe99

Please sign in to comment.