Skip to content

Commit

Permalink
chore(format): run black on dev (#739)
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 Sep 2, 2024
1 parent 3990f0e commit 905494e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ChatTTS/model/velocity/model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,11 @@ def execute_model(
for i in range(self.post_model.num_vq)
]
input_emb = torch.stack(code_emb, 3).sum(3)
start_idx = input_tokens_history.shape[-2] - 1 if input_tokens_history.shape[-2] > 0 else 0
start_idx = (
input_tokens_history.shape[-2] - 1
if input_tokens_history.shape[-2] > 0
else 0
)
else:
input_emb = self.post_model(input_tokens, text_mask)
# print(input_emb.shape)
Expand Down

0 comments on commit 905494e

Please sign in to comment.