ArkanDash commited on
Commit
0a097c2
1 Parent(s): 37eea93

test: audio var

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -45,9 +45,8 @@ def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index):
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
 
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