Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,9 @@ import numpy as np
|
|
13 |
import torch
|
14 |
import torch.nn.functional as F
|
15 |
from collections import OrderedDict
|
16 |
-
from
|
17 |
-
from
|
18 |
-
from
|
19 |
|
20 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
|
@@ -64,8 +64,8 @@ import torch
|
|
64 |
import librosa
|
65 |
import pickle
|
66 |
import os
|
67 |
-
from
|
68 |
-
from
|
69 |
|
70 |
model = build_model().to(device)
|
71 |
checkpoint = torch.load(hf_hub_download(repo_id="jonathanjordan21/AutoPST", filename="checkpoint_step001000000_ema.pth"), map_location=torch.device('cpu'))
|
|
|
13 |
import torch
|
14 |
import torch.nn.functional as F
|
15 |
from collections import OrderedDict
|
16 |
+
from onmt_modules.misc import sequence_mask
|
17 |
+
from model_autopst import Generator_2 as Predictor
|
18 |
+
from hparams_autopst import hparams
|
19 |
|
20 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
|
|
|
64 |
import librosa
|
65 |
import pickle
|
66 |
import os
|
67 |
+
from synthesis import build_model
|
68 |
+
from synthesis import wavegen
|
69 |
|
70 |
model = build_model().to(device)
|
71 |
checkpoint = torch.load(hf_hub_download(repo_id="jonathanjordan21/AutoPST", filename="checkpoint_step001000000_ema.pth"), map_location=torch.device('cpu'))
|