Skip to content

Commit c88e039

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

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChatTTS/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def download_models(
9696
)
9797
try:
9898
download_path = snapshot_download(
99-
repo_id="2Noise/ChatTTS", allow_patterns=["*.pt", "*.yaml", "*.json"]
99+
repo_id="2Noise/ChatTTS",
100+
allow_patterns=["*.pt", "*.yaml", "*.json"],
100101
)
101102
except:
102103
download_path = None

tests/#588.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@
3333
)
3434

3535
trimre = re.compile("\\[[\w_]+\\]")
36+
37+
3638
def trim_tags(txt: str) -> str:
3739
global trimre
3840
return trimre.sub("", txt)
3941

42+
4043
for i, t in enumerate(refined):
4144
if len(t) > 4 * len(trim_tags(texts[i])):
4245
fail = True

0 commit comments

Comments
 (0)