Agree license
Browse files
xtts.py
CHANGED
@@ -13,6 +13,8 @@ from TTS.tts.models.xtts import Xtts
|
|
13 |
from TTS.utils.generic_utils import get_user_data_dir
|
14 |
from TTS.utils.manage import ModelManager
|
15 |
|
|
|
|
|
16 |
torch.set_num_threads(int(os.environ.get("NUM_THREADS", os.cpu_count())))
|
17 |
device = torch.device("cuda" if os.environ.get("USE_CPU", "0") == "0" else "cpu")
|
18 |
if not torch.cuda.is_available() and device == "cuda":
|
|
|
13 |
from TTS.utils.generic_utils import get_user_data_dir
|
14 |
from TTS.utils.manage import ModelManager
|
15 |
|
16 |
+
os.environ["COQUI_TOS_AGREED"] = 1
|
17 |
+
|
18 |
torch.set_num_threads(int(os.environ.get("NUM_THREADS", os.cpu_count())))
|
19 |
device = torch.device("cuda" if os.environ.get("USE_CPU", "0") == "0" else "cpu")
|
20 |
if not torch.cuda.is_available() and device == "cuda":
|