Kororinpa commited on
Commit
547a1a3
1 Parent(s): e2f729e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("Kororinpa/Amadeus_Project/configs/steins_gate_base.json")
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("Kororinpa/Amadeus_Project/G_265000.pth", net_g, None)
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)