Kangarroar commited on
Commit
976a73f
1 Parent(s): 5e8ebb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,12 +20,12 @@ def render_audio(audio_file):
20
  project_name = "Unnamed"
21
  model_path = f'./checkpoints/Unnamed/model_ckpt_steps_192000.ckpt'
22
  config_path=f'./checkpoints/Unnamed/config.yaml'
23
- hubert_gpu=False
24
  svc_model = Svc(project_name,config_path,hubert_gpu, model_path)
25
  print('model loaded')
26
  wav_fn = audio_file
27
  demoaudio, sr = librosa.load(wav_fn)
28
- key = -8 # 音高调整,支持正负(半音)
29
  # 加速倍数
30
 
31
  pndm_speedup = 20
 
20
  project_name = "Unnamed"
21
  model_path = f'./checkpoints/Unnamed/model_ckpt_steps_192000.ckpt'
22
  config_path=f'./checkpoints/Unnamed/config.yaml'
23
+ hubert_gpu=True
24
  svc_model = Svc(project_name,config_path,hubert_gpu, model_path)
25
  print('model loaded')
26
  wav_fn = audio_file
27
  demoaudio, sr = librosa.load(wav_fn)
28
+ key = 0 # 音高调整,支持正负(半音)
29
  # 加速倍数
30
 
31
  pndm_speedup = 20