Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from inference import infer
|
3 |
import numpy as np
|
4 |
-
def vc_fn(sid,random1, input_audio,vc_transform):
|
5 |
-
|
6 |
-
return "Success", (22050, audio)
|
7 |
|
|
|
|
|
8 |
|
9 |
app = gr.Blocks()
|
10 |
with app:
|
@@ -14,7 +13,7 @@ with app:
|
|
14 |
""")
|
15 |
sid = gr.Dropdown(label="音色",choices=np.arange(175), value=0)
|
16 |
vc_audio = gr.Audio(label="上传音频,建议小于2分钟")
|
17 |
-
vc_transform = gr.Number(label="变调(整数,可以正负,半音数量,升高八度就是12)",value=
|
18 |
vc_submit = gr.Button("转换", variant="primary")
|
19 |
vc_output1 = gr.Textbox(label="Output Message")
|
20 |
vc_output2 = gr.Audio(label="Output Audio")
|
|
|
1 |
import gradio as gr
|
2 |
from inference import infer
|
3 |
import numpy as np
|
|
|
|
|
|
|
4 |
|
5 |
+
spkdict=np.arange(175).tolist()
|
6 |
+
spkdict=['speaker'+str(spk) for spk in spkdict]
|
7 |
|
8 |
app = gr.Blocks()
|
9 |
with app:
|
|
|
13 |
""")
|
14 |
sid = gr.Dropdown(label="音色",choices=np.arange(175), value=0)
|
15 |
vc_audio = gr.Audio(label="上传音频,建议小于2分钟")
|
16 |
+
vc_transform = gr.Number(label="变调(整数,可以正负,半音数量,升高八度就是12)",value='speaker0')
|
17 |
vc_submit = gr.Button("转换", variant="primary")
|
18 |
vc_output1 = gr.Textbox(label="Output Message")
|
19 |
vc_output2 = gr.Audio(label="Output Audio")
|