Skip to content

Commit 4c201cd

Browse files
chore(format): run black on dev (#901)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a500911 commit 4c201cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ChatTTS/model/gpt.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ def _prepare_generation_inputs(
190190
try:
191191
max_cache_length = past_key_values.get_max_cache_shape()
192192
except:
193-
max_cache_length = past_key_values.get_max_length() # deprecated in transformers 4.48
193+
max_cache_length = (
194+
past_key_values.get_max_length()
195+
) # deprecated in transformers 4.48
194196
cache_length = (
195197
past_length
196198
if max_cache_length is None

0 commit comments

Comments
 (0)