Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def get_text(text, hps):
|
|
37 |
text_norm = torch.LongTensor(text_norm)
|
38 |
return text_norm
|
39 |
|
40 |
-
hps = utils.get_hparams_from_file("
|
41 |
|
42 |
net_g = SynthesizerTrn(
|
43 |
len(symbols),
|
@@ -46,7 +46,7 @@ net_g = SynthesizerTrn(
|
|
46 |
**hps.model).cuda()
|
47 |
_ = net_g.eval()
|
48 |
|
49 |
-
_ = utils.load_checkpoint("
|
50 |
|
51 |
def syn(content):
|
52 |
stn_tst = get_text(content, hps)
|
|
|
37 |
text_norm = torch.LongTensor(text_norm)
|
38 |
return text_norm
|
39 |
|
40 |
+
hps = utils.get_hparams_from_file("configs/steins_gate_base.json")
|
41 |
|
42 |
net_g = SynthesizerTrn(
|
43 |
len(symbols),
|
|
|
46 |
**hps.model).cuda()
|
47 |
_ = net_g.eval()
|
48 |
|
49 |
+
_ = utils.load_checkpoint("G_265000.pth", net_g, None)
|
50 |
|
51 |
def syn(content):
|
52 |
stn_tst = get_text(content, hps)
|