Spaces:
Runtime error
Runtime error
Shivam Mehta
commited on
Commit
·
bb50f7a
1
Parent(s):
9d6551a
cuda fixes
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def load_vocoder(checkpoint_path):
|
|
| 53 |
cmu = cmudict.CMUDict(CMU_DICT_PATH)
|
| 54 |
def process_text(text: str):
|
| 55 |
x = torch.LongTensor(intersperse(text_to_sequence(text, dictionary=cmu), len(symbols))).to(device)[None]
|
| 56 |
-
x_lengths = torch.LongTensor([x.shape[-1]]).
|
| 57 |
x_phones = sequence_to_text(x.squeeze(0).tolist())
|
| 58 |
return {
|
| 59 |
'x_orig': text,
|
|
|
|
| 53 |
cmu = cmudict.CMUDict(CMU_DICT_PATH)
|
| 54 |
def process_text(text: str):
|
| 55 |
x = torch.LongTensor(intersperse(text_to_sequence(text, dictionary=cmu), len(symbols))).to(device)[None]
|
| 56 |
+
x_lengths = torch.LongTensor([x.shape[-1]]).to(device)
|
| 57 |
x_phones = sequence_to_text(x.squeeze(0).tolist())
|
| 58 |
return {
|
| 59 |
'x_orig': text,
|