Replaced Encodec with Vocos
Browse files
app.py
CHANGED
@@ -44,8 +44,8 @@ text_tokenizer = PhonemeBpeTokenizer(tokenizer_path="./utils/g2p/bpe_69.json")
|
|
44 |
text_collater = get_text_token_collater()
|
45 |
|
46 |
device = torch.device("cpu")
|
47 |
-
|
48 |
-
|
49 |
|
50 |
# VALL-E-X model
|
51 |
model = VALLE(
|
|
|
44 |
text_collater = get_text_token_collater()
|
45 |
|
46 |
device = torch.device("cpu")
|
47 |
+
if torch.cuda.is_available():
|
48 |
+
device = torch.device("cuda", 0)
|
49 |
|
50 |
# VALL-E-X model
|
51 |
model = VALLE(
|