saeki
commited on
Commit
•
a3812f7
1
Parent(s):
48afd71
fix
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def transfer(audio):
|
|
54 |
normalize_waveform(wav_src.squeeze(0), sr), config
|
55 |
)
|
56 |
wav_tar = normalize_waveform(wav_tar.squeeze(0), sr)
|
57 |
-
ckpt_path = pathlib.Path("tono_aet_melspec.ckpt")
|
58 |
src_model = SSLDualLightningModule(config).load_from_checkpoint(
|
59 |
checkpoint_path=ckpt_path,
|
60 |
config=config,
|
@@ -76,7 +76,6 @@ if __name__ == "__main__":
|
|
76 |
subprocess.run(["curl", "-OL", "https://sarulab.sakura.ne.jp/saeki/selfremaster/pretrained/tono_aet_melspec.ckpt"])
|
77 |
subprocess.run(["ls", "-a"])
|
78 |
subprocess.run(["ls", "-a", "aet_sample"])
|
79 |
-
subprocess.run(["mv", "tono_aet_melspec.ckpt", "aet_sample/"])
|
80 |
|
81 |
iface = gr.Interface(
|
82 |
transfer,
|
|
|
54 |
normalize_waveform(wav_src.squeeze(0), sr), config
|
55 |
)
|
56 |
wav_tar = normalize_waveform(wav_tar.squeeze(0), sr)
|
57 |
+
ckpt_path = pathlib.Path("tono_aet_melspec.ckpt").resolve()
|
58 |
src_model = SSLDualLightningModule(config).load_from_checkpoint(
|
59 |
checkpoint_path=ckpt_path,
|
60 |
config=config,
|
|
|
76 |
subprocess.run(["curl", "-OL", "https://sarulab.sakura.ne.jp/saeki/selfremaster/pretrained/tono_aet_melspec.ckpt"])
|
77 |
subprocess.run(["ls", "-a"])
|
78 |
subprocess.run(["ls", "-a", "aet_sample"])
|
|
|
79 |
|
80 |
iface = gr.Interface(
|
81 |
transfer,
|