Spaces:
Runtime error
Runtime error
Commit
·
358d9fc
1
Parent(s):
d83143d
Update api.py
Browse files
api.py
CHANGED
|
@@ -16,8 +16,8 @@ class OpenVoiceBaseClass(object):
|
|
| 16 |
config_path,
|
| 17 |
#device='cuda:0'):
|
| 18 |
device="cpu"):
|
| 19 |
-
if 'cuda' in device:
|
| 20 |
-
|
| 21 |
|
| 22 |
hps = utils.get_hparams_from_file(config_path)
|
| 23 |
|
|
|
|
| 16 |
config_path,
|
| 17 |
#device='cuda:0'):
|
| 18 |
device="cpu"):
|
| 19 |
+
#if 'cuda' in device:
|
| 20 |
+
# assert torch.cuda.is_available()
|
| 21 |
|
| 22 |
hps = utils.get_hparams_from_file(config_path)
|
| 23 |
|