KevinGeng commited on
Commit
8a0efc4
1 Parent(s): 1919a8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ class ChangeSampleRate(nn.Module):
35
  output = round_down * (1. - indices.fmod(1.)).unsqueeze(0) + round_up * indices.fmod(1.).unsqueeze(0)
36
  return output
37
 
38
- model = lightning_module.BaselineLightningModule.load_from_checkpoint("epoch=3-step=7459.ckpt").eval()
39
  def calc_mos(audio_path, ref):
40
  wav, sr = torchaudio.load(audio_path)
41
  osr = 16_000
 
35
  output = round_down * (1. - indices.fmod(1.)).unsqueeze(0) + round_up * indices.fmod(1.).unsqueeze(0)
36
  return output
37
 
38
+ model = lightning_module.BaselineLightningModule.load_from_checkpoint("./epoch=3-step=7459.ckpt").eval()
39
  def calc_mos(audio_path, ref):
40
  wav, sr = torchaudio.load(audio_path)
41
  osr = 16_000