Skip to content

Commit

Permalink
chore(format): run black on dev (#651)
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 Jul 31, 2024
1 parent e675a59 commit 6e2b0ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ChatTTS/model/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@ def generate(
idx_next = torch.multinomial(scores, num_samples=1).to(finish.device)
else:
idx_next = torch.multinomial(
scores, num_samples=1,
scores,
num_samples=1,
generator=self.generator.manual_seed(manual_seed),
).to(finish.device)

Expand Down

0 comments on commit 6e2b0ae

Please sign in to comment.