Spaces:
Runtime error
Runtime error
init
Browse files- app.py +3 -3
- nyarumodel.pth +3 -0
app.py
CHANGED
@@ -40,7 +40,7 @@ def get_text(text, hps):
|
|
40 |
return text_norm
|
41 |
|
42 |
|
43 |
-
hps_ms = utils.get_hparams_from_file("configs/
|
44 |
net_g_ms = SynthesizerTrn(
|
45 |
len(symbols),
|
46 |
hps_ms.data.filter_length // 2 + 1,
|
@@ -53,7 +53,7 @@ featureInput = FeatureInput(hps_ms.data.sampling_rate, hps_ms.data.hop_length)
|
|
53 |
|
54 |
hubert = torch.hub.load("bshall/hubert:main", "hubert_soft")
|
55 |
|
56 |
-
_ = utils.load_checkpoint("
|
57 |
|
58 |
def vc_fn(input_audio,vc_transform):
|
59 |
if input_audio is None:
|
@@ -95,7 +95,7 @@ with app:
|
|
95 |
with gr.Tabs():
|
96 |
with gr.TabItem("Basic"):
|
97 |
vc_input3 = gr.Audio(label="Input Audio (30s limitation)")
|
98 |
-
vc_transform = gr.Number(label="
|
99 |
vc_submit = gr.Button("Convert", variant="primary")
|
100 |
vc_output1 = gr.Textbox(label="Output Message")
|
101 |
vc_output2 = gr.Audio(label="Output Audio")
|
|
|
40 |
return text_norm
|
41 |
|
42 |
|
43 |
+
hps_ms = utils.get_hparams_from_file("configs/nyarumul.json")
|
44 |
net_g_ms = SynthesizerTrn(
|
45 |
len(symbols),
|
46 |
hps_ms.data.filter_length // 2 + 1,
|
|
|
53 |
|
54 |
hubert = torch.hub.load("bshall/hubert:main", "hubert_soft")
|
55 |
|
56 |
+
_ = utils.load_checkpoint("nyarumodel.pth", net_g_ms, None)
|
57 |
|
58 |
def vc_fn(input_audio,vc_transform):
|
59 |
if input_audio is None:
|
|
|
95 |
with gr.Tabs():
|
96 |
with gr.TabItem("Basic"):
|
97 |
vc_input3 = gr.Audio(label="Input Audio (30s limitation)")
|
98 |
+
vc_transform = gr.Number(label="εθ°ζ°ι",value=1)
|
99 |
vc_submit = gr.Button("Convert", variant="primary")
|
100 |
vc_output1 = gr.Textbox(label="Output Message")
|
101 |
vc_output2 = gr.Audio(label="Output Audio")
|
nyarumodel.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50330133cf1807c7c96daf2e424c4e84895500c15117f52b9b81208d5c3eae26
|
3 |
+
size 221105477
|