chore(format): run black on dev (#590)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-07-19 00:43:23 +09:00
committed by GitHub
parent 5d29b7c381
commit fc4f16a6d3
+5 -5
View File
@@ -18,9 +18,9 @@ chat = ChatTTS.Chat(logger)
chat.load(compile=False, source="huggingface") # Set to True for better performance
texts = [
"总结一下,AI Agent是大模型功能的扩展,让AI更接近于通用人工智能,也就是我们常说的AGI。",
"你真是太聪明啦。",
]
"总结一下,AI Agent是大模型功能的扩展,让AI更接近于通用人工智能,也就是我们常说的AGI。",
"你真是太聪明啦。",
]
fail = False
@@ -28,11 +28,11 @@ refined = chat.infer(
texts,
refine_text_only=True,
stream=False,
params_refine_text=ChatTTS.Chat.RefineTextParams(show_tqdm=False)
params_refine_text=ChatTTS.Chat.RefineTextParams(show_tqdm=False),
)
for i, t in enumerate(refined):
if len(t) > 4*len(texts[i]):
if len(t) > 4 * len(texts[i]):
fail = True
logger.warning("in: %s, out: %s", texts[i], t)