Skip to content

Commit

Permalink
fix: set missing comple=False (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 23, 2024
1 parent 554554c commit 7f54d2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions examples/cmd/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import sys

import numpy as np
import torch

import ChatTTS
from tools.logger import get_logger
Expand Down Expand Up @@ -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.")
Expand Down
4 changes: 2 additions & 2 deletions examples/web/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f54d2c

Please sign in to comment.