kenshin20080 commited on
Commit
b5acf06
1 Parent(s): 4ea9de7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ def create_vc_fn(model, sid):
41
  soundfile.write(raw_path, audio, 16000, format="wav")
42
  raw_path.seek(0)
43
  out_audio, out_sr = model.infer(sid, vc_transform, raw_path,
44
- auto_predict_f0=auto_f0, F0_mean_pooling=True,
45
  )
46
  return "Success", (44100, out_audio.cpu().numpy())
47
  if input_audio is None:
@@ -59,7 +59,7 @@ def create_vc_fn(model, sid):
59
  soundfile.write(raw_path, audio, 16000, format="wav")
60
  raw_path.seek(0)
61
  out_audio, out_sr = model.infer(sid, vc_transform, raw_path,
62
- auto_predict_f0=auto_f0, F0_mean_pooling=True,
63
  )
64
  return "Success", (44100, out_audio.cpu().numpy())
65
  return vc_fn
 
41
  soundfile.write(raw_path, audio, 16000, format="wav")
42
  raw_path.seek(0)
43
  out_audio, out_sr = model.infer(sid, vc_transform, raw_path,
44
+ auto_predict_f0=auto_f0,
45
  )
46
  return "Success", (44100, out_audio.cpu().numpy())
47
  if input_audio is None:
 
59
  soundfile.write(raw_path, audio, 16000, format="wav")
60
  raw_path.seek(0)
61
  out_audio, out_sr = model.infer(sid, vc_transform, raw_path,
62
+ auto_predict_f0=auto_f0,
63
  )
64
  return "Success", (44100, out_audio.cpu().numpy())
65
  return vc_fn