Skip to content

Commit

Permalink
chore(format): run black on dev (#901)
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 Feb 18, 2025
1 parent a500911 commit 4c201cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ChatTTS/model/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ def _prepare_generation_inputs(
try:
max_cache_length = past_key_values.get_max_cache_shape()
except:
max_cache_length = past_key_values.get_max_length() # deprecated in transformers 4.48
max_cache_length = (
past_key_values.get_max_length()
) # deprecated in transformers 4.48
cache_length = (
past_length
if max_cache_length is None
Expand Down

0 comments on commit 4c201cd

Please sign in to comment.