diff --git a/examples/cmd/run.py b/examples/cmd/run.py index f11a62f5f..9249eb5b9 100644 --- a/examples/cmd/run.py +++ b/examples/cmd/run.py @@ -4,7 +4,6 @@ import sys import numpy as np -import torch import ChatTTS from tools.logger import get_logger @@ -66,9 +65,9 @@ def main( 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(source="custom", custom_path=custom_path) else: - is_load = chat.load(compile=True, source=source) + is_load = chat.load(source=source) if is_load: logger.info("Models loaded successfully.") diff --git a/examples/web/funcs.py b/examples/web/funcs.py index 4885e5331..3f6b81ed1 100644 --- a/examples/web/funcs.py +++ b/examples/web/funcs.py @@ -61,11 +61,11 @@ def on_audio_seed_change(audio_seed_input): def load_chat(cust_path: Optional[str], coef: Optional[str]) -> bool: if cust_path == None: - ret = chat.load(coef=coef, compile=sys.platform != "win32") + ret = chat.load(coef=coef) else: logger.info("local model path: %s", cust_path) ret = chat.load( - "custom", custom_path=cust_path, coef=coef, compile=sys.platform != "win32" + "custom", custom_path=cust_path, coef=coef ) global custom_path custom_path = cust_path