mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-31 01:12:28 +08:00
chore(format): run black on dev (#974)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a2b36dbf0c
commit
46204ca04f
@@ -231,9 +231,7 @@ class GPT(nn.Module):
|
||||
and cache_length + input_ids.shape[1] > max_cache_length
|
||||
):
|
||||
start_pos = attention_mask.shape[1] - max_cache_length
|
||||
attention_mask = attention_mask.narrow(
|
||||
1, start_pos, max_cache_length
|
||||
)
|
||||
attention_mask = attention_mask.narrow(1, start_pos, max_cache_length)
|
||||
|
||||
if attention_mask is not None and position_ids is None:
|
||||
# create position_ids on the fly for batch generation
|
||||
|
||||
@@ -279,7 +279,7 @@ def main():
|
||||
server_port=args.server_port,
|
||||
root_path=args.root_path,
|
||||
inbrowser=True,
|
||||
footer_links=['api', 'gradio', 'settings'],
|
||||
footer_links=["api", "gradio", "settings"],
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user