ChrisPreston commited on
Commit
24d6485
1 Parent(s): 5ffdc9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -23,7 +23,7 @@ spk_id = "aqua"
23
 
24
  def infer(hubert_gpu, wav_fn, tran, accelerate, auto_key):
25
 
26
- model = Svc(project_name, config_path, hubert_gpu, model_path, onnx=False)
27
 
28
  if wav_fn is not None:
29
  audio_path = wav_fn
@@ -43,7 +43,7 @@ with app:
43
  with gr.Blocks():
44
  with gr.Blocks():
45
  with gr.Box():
46
- gr.Markdown(value="""**上传音频**""")
47
  with gr.Row():
48
  upload_input = gr.Audio(source="upload", label="源音频", type="filepath", elem_id="audio_inputs")
49
  out_audio = gr.Audio(label="输出音频")
@@ -51,7 +51,6 @@ with app:
51
  with gr.Box():
52
  gr.Markdown(value="""**参数设置**""")
53
  with gr.Row():
54
- use_gpu = gr.Checkbox(label="启用GPU加速(需CUDA)", value=True)
55
  auto = gr.Checkbox(label="启用自动变调", value=False)
56
  with gr.Row():
57
  acc_vaule = gr.Slider(1, 50, value=20, interactive=True, label="加速倍率")
 
23
 
24
  def infer(hubert_gpu, wav_fn, tran, accelerate, auto_key):
25
 
26
+ model = Svc(project_name, config_path, hubert_gpu=False, model_path, onnx=False)
27
 
28
  if wav_fn is not None:
29
  audio_path = wav_fn
 
43
  with gr.Blocks():
44
  with gr.Blocks():
45
  with gr.Box():
46
+ gr.Markdown(value="""**上传音频(小于30s)**""")
47
  with gr.Row():
48
  upload_input = gr.Audio(source="upload", label="源音频", type="filepath", elem_id="audio_inputs")
49
  out_audio = gr.Audio(label="输出音频")
 
51
  with gr.Box():
52
  gr.Markdown(value="""**参数设置**""")
53
  with gr.Row():
 
54
  auto = gr.Checkbox(label="启用自动变调", value=False)
55
  with gr.Row():
56
  acc_vaule = gr.Slider(1, 50, value=20, interactive=True, label="加速倍率")