Spaces:
Runtime error
Runtime error
Commit
·
641a3d4
1
Parent(s):
64258a3
Update api.py
Browse files
api.py
CHANGED
|
@@ -15,7 +15,7 @@ class OpenVoiceBaseClass(object):
|
|
| 15 |
def __init__(self,
|
| 16 |
config_path,
|
| 17 |
#device='cuda:0'):
|
| 18 |
-
|
| 19 |
if 'cuda' in device:
|
| 20 |
assert torch.cuda.is_available()
|
| 21 |
|
|
|
|
| 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 |
|