Spaces:
No application file
No application file
jameshuntercarter
commited on
Commit
•
9dad838
1
Parent(s):
d9382cf
Upload predict.py
Browse files- predict.py +1 -1
predict.py
CHANGED
@@ -31,7 +31,7 @@ class Predictor(BasePredictor):
|
|
31 |
from bark_hubert_quantizer.customtokenizer import CustomTokenizer
|
32 |
|
33 |
large_quant_model = False # Use the larger pretrained model
|
34 |
-
device = torch.device('
|
35 |
|
36 |
model = ('quantifier_V1_hubert_base_ls960_23.pth', 'tokenizer_large.pth') if large_quant_model else (
|
37 |
'quantifier_hubert_base_ls960_14.pth', 'tokenizer.pth')
|
|
|
31 |
from bark_hubert_quantizer.customtokenizer import CustomTokenizer
|
32 |
|
33 |
large_quant_model = False # Use the larger pretrained model
|
34 |
+
device = torch.device('cpu') # 'cuda', 'cpu', 'cuda:0', 0, -1, torch.device('cuda')
|
35 |
|
36 |
model = ('quantifier_V1_hubert_base_ls960_23.pth', 'tokenizer_large.pth') if large_quant_model else (
|
37 |
'quantifier_hubert_base_ls960_14.pth', 'tokenizer.pth')
|