Skip to content

Commit

Permalink
chore(format): run black on dev (#674)
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] committed Aug 8, 2024
1 parent 6259319 commit b2246cc
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions examples/cmd/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ def load_normalizer(chat: ChatTTS.Chat):
)


def main(texts: List[str],
spk: Optional[str] = None,
stream: bool = False,
source: str = "local",
custom_path: str = "",
):
def main(
texts: List[str],
spk: Optional[str] = None,
stream: bool = False,
source: str = "local",
custom_path: str = "",
):
logger.info("Text input: %s", str(texts))

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

is_load = False
if os.path.isdir(custom_path) and source == "custom":
is_load = chat.load(compile=True,
source="custom",
custom_path=custom_path)
is_load = chat.load(compile=True, source="custom", custom_path=custom_path)
else:
is_load = chat.load(compile=True, source=source)

Expand Down

0 comments on commit b2246cc

Please sign in to comment.