ulysses115 commited on
Commit
f1b7e70
·
1 Parent(s): aa1d4f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,6 +22,7 @@ import logging
22
  from infer_tools.infer_tool import *
23
  import io
24
 
 
25
  spk_dict = {
26
  "雷电将军": {"model_name": './models/genshin/raiden.ckpt', "config_name": './models/genshin/config.yaml'}
27
  }
@@ -32,6 +33,8 @@ config_path= spk_dict['雷电将军']['config_name']
32
  hubert_gpu = False
33
  svc_model = Svc(project_name, config_path, hubert_gpu, model_path)
34
 
 
 
35
  def vc_fn(sid, audio_record, audio_upload, tran, pndm_speedup=20):
36
  print(sid)
37
  if audio_upload is not None:
@@ -47,7 +50,6 @@ def vc_fn(sid, audio_record, audio_upload, tran, pndm_speedup=20):
47
  # demoaudio, sr = librosa.load(audio_path)
48
  key = tran # 音高调整,支持正负(半音)
49
  # 加速倍数
50
- pndm_speedup = 20
51
  wav_gen='queeeeee.wav'
52
 
53
  # Show the spinner and run the run_clip function inside the 'with' block
 
22
  from infer_tools.infer_tool import *
23
  import io
24
 
25
+ print(spk_dict)
26
  spk_dict = {
27
  "雷电将军": {"model_name": './models/genshin/raiden.ckpt', "config_name": './models/genshin/config.yaml'}
28
  }
 
33
  hubert_gpu = False
34
  svc_model = Svc(project_name, config_path, hubert_gpu, model_path)
35
 
36
+ print(svc_model)
37
+
38
  def vc_fn(sid, audio_record, audio_upload, tran, pndm_speedup=20):
39
  print(sid)
40
  if audio_upload is not None:
 
50
  # demoaudio, sr = librosa.load(audio_path)
51
  key = tran # 音高调整,支持正负(半音)
52
  # 加速倍数
 
53
  wav_gen='queeeeee.wav'
54
 
55
  # Show the spinner and run the run_clip function inside the 'with' block