ArkanDash commited on
Commit
39a0e4e
1 Parent(s): 0a097c2

test: undo

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -45,8 +45,9 @@ def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index):
45
  protect,
46
  ):
47
  try:
48
- audio = ""
49
- if vc_audio_mode == "Upload audio":
 
50
  if vc_upload is None:
51
  return "You need to upload an audio", None
52
  sampling_rate, audio = vc_upload
 
45
  protect,
46
  ):
47
  try:
48
+ if vc_audio_mode == "Input path" or "Youtube" and vc_input != "":
49
+ audio, sr = librosa.load(vc_input, sr=16000, mono=True)
50
+ elif vc_audio_mode == "Upload audio":
51
  if vc_upload is None:
52
  return "You need to upload an audio", None
53
  sampling_rate, audio = vc_upload