Update api.py
Browse files
api.py
CHANGED
@@ -14,8 +14,8 @@ from models import SynthesizerTrn
|
|
14 |
class OpenVoiceBaseClass(object):
|
15 |
def __init__(self,
|
16 |
config_path,
|
17 |
-
|
18 |
-
device="cpu"):
|
19 |
#if 'cuda' in device:
|
20 |
# assert torch.cuda.is_available()
|
21 |
|
|
|
14 |
class OpenVoiceBaseClass(object):
|
15 |
def __init__(self,
|
16 |
config_path,
|
17 |
+
device='cuda:0'):
|
18 |
+
#device="cpu"):
|
19 |
#if 'cuda' in device:
|
20 |
# assert torch.cuda.is_available()
|
21 |
|