Update app.py
Browse files
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
|