From b66636e552ea1e0a8804b82af23851fb1102f1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 16 Jul 2024 17:18:51 +0900 Subject: [PATCH] fix(core): reletive load path --- ChatTTS/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ChatTTS/core.py b/ChatTTS/core.py index 61893e2..4ab9016 100644 --- a/ChatTTS/core.py +++ b/ChatTTS/core.py @@ -141,7 +141,10 @@ class Chat: compile=compile, coef=coef, use_flash_attn=use_flash_attn, - **asdict(self.config.path), + **{ + k: os.path.join(download_path, v) + for k, v in asdict(self.config.path).items() + }, ) def unload(self):