Spaces:
Build error
Build error
ChrisPreston
commited on
Commit
•
1c22922
1
Parent(s):
e5442c4
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ model_path = f'./aqua/clean_model_ckpt_steps_100000.ckpt'
|
|
21 |
config_path = f'./aqua/config.yaml'
|
22 |
spk_id = "aqua"
|
23 |
|
24 |
-
def infer(
|
25 |
model = Svc(project_name, config_path, hubert_gpu, model_path, onnx=False)
|
26 |
|
27 |
if wav_fn is not None:
|
@@ -50,7 +50,6 @@ with app:
|
|
50 |
with gr.Box():
|
51 |
gr.Markdown(value="""**参数设置**""")
|
52 |
with gr.Row():
|
53 |
-
use_gpu = gr.Checkbox(label="启用GPU加速(需CUDA)", value=True)
|
54 |
auto = gr.Checkbox(label="启用自动变调", value=False)
|
55 |
with gr.Row():
|
56 |
acc_vaule = gr.Slider(1, 50, value=20, interactive=True, label="加速倍率")
|
@@ -63,7 +62,7 @@ with app:
|
|
63 |
with gr.Box():
|
64 |
gr.Markdown(value="""**输出日志**""")
|
65 |
infer_msg = gr.Textbox(label="日志")
|
66 |
-
infer_md.click(infer, [
|
67 |
with gr.TabItem("协议"):
|
68 |
gr.Markdown(value="""
|
69 |
此为上传文件推理用GUI,需要变声功能请使用变声器\n
|
|
|
21 |
config_path = f'./aqua/config.yaml'
|
22 |
spk_id = "aqua"
|
23 |
|
24 |
+
def infer(wav_fn, tran, accelerate, auto_key):
|
25 |
model = Svc(project_name, config_path, hubert_gpu, model_path, onnx=False)
|
26 |
|
27 |
if wav_fn is not None:
|
|
|
50 |
with gr.Box():
|
51 |
gr.Markdown(value="""**参数设置**""")
|
52 |
with gr.Row():
|
|
|
53 |
auto = gr.Checkbox(label="启用自动变调", value=False)
|
54 |
with gr.Row():
|
55 |
acc_vaule = gr.Slider(1, 50, value=20, interactive=True, label="加速倍率")
|
|
|
62 |
with gr.Box():
|
63 |
gr.Markdown(value="""**输出日志**""")
|
64 |
infer_msg = gr.Textbox(label="日志")
|
65 |
+
infer_md.click(infer, [upload_input, pitch_vaule, acc_vaule, auto], [infer_msg, out_audio])
|
66 |
with gr.TabItem("协议"):
|
67 |
gr.Markdown(value="""
|
68 |
此为上传文件推理用GUI,需要变声功能请使用变声器\n
|