Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
import torchaudio
|
4 |
import yaml
|
5 |
-
from models.
|
6 |
|
7 |
|
8 |
class AttrDict(dict):
|
@@ -30,8 +30,8 @@ def inference(noisy_path):
|
|
30 |
|
31 |
from huggingface_hub import hf_hub_download
|
32 |
config_path = hf_hub_download(repo_id="yaoxunji/gense", filename="gense.yaml")
|
33 |
-
n2s_ckpt_path = hf_hub_download(repo_id="yaoxunji/gense", filename="
|
34 |
-
s2s_ckpt_path = hf_hub_download(repo_id="yaoxunji/gense", filename="
|
35 |
|
36 |
|
37 |
|
|
|
2 |
import torch
|
3 |
import torchaudio
|
4 |
import yaml
|
5 |
+
from models.gense_wavlm import N2S, S2S
|
6 |
|
7 |
|
8 |
class AttrDict(dict):
|
|
|
30 |
|
31 |
from huggingface_hub import hf_hub_download
|
32 |
config_path = hf_hub_download(repo_id="yaoxunji/gense", filename="gense.yaml")
|
33 |
+
n2s_ckpt_path = hf_hub_download(repo_id="yaoxunji/gense", filename="n2s_wavlm.ckpt")
|
34 |
+
s2s_ckpt_path = hf_hub_download(repo_id="yaoxunji/gense", filename="s2s_wavlm.ckpt")
|
35 |
|
36 |
|
37 |
|