Skip to content

Commit b2246cc

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

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

examples/cmd/run.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ def load_normalizer(chat: ChatTTS.Chat):
5151
)
5252

5353

54-
def main(texts: List[str],
55-
spk: Optional[str] = None,
56-
stream: bool = False,
57-
source: str = "local",
58-
custom_path: str = "",
59-
):
54+
def main(
55+
texts: List[str],
56+
spk: Optional[str] = None,
57+
stream: bool = False,
58+
source: str = "local",
59+
custom_path: str = "",
60+
):
6061
logger.info("Text input: %s", str(texts))
6162

6263
chat = ChatTTS.Chat(get_logger("ChatTTS"))
@@ -65,9 +66,7 @@ def main(texts: List[str],
6566

6667
is_load = False
6768
if os.path.isdir(custom_path) and source == "custom":
68-
is_load = chat.load(compile=True,
69-
source="custom",
70-
custom_path=custom_path)
69+
is_load = chat.load(compile=True, source="custom", custom_path=custom_path)
7170
else:
7271
is_load = chat.load(compile=True, source=source)
7372

0 commit comments

Comments
 (0)