jonathanjordan21 commited on
Commit
70fb0ac
·
verified ·
1 Parent(s): 23598cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 AutoPST.onmt_modules.misc import sequence_mask
17
- from AutoPST.model_autopst import Generator_2 as Predictor
18
- from AutoPST.hparams_autopst import hparams
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 AutoPST.synthesis import build_model
68
- from AutoPST.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'))
 
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'))