ArkanDash commited on
Commit
33051ed
1 Parent(s): e6d96db

fix: cover not loaded

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,6 @@ def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):
81
  logger.info(f"Converting using {model_name}...")
82
  logs.append(f"Converting using {model_name}...")
83
  yield "\n".join(logs), None
84
- logger.info(vc_audio_mode)
85
  if vc_audio_mode == "Input path" or "Youtube" and vc_input != "":
86
  audio = load_audio(vc_input, 16000)
87
  audio_max = np.abs(audio).max() / 0.95
@@ -550,4 +549,5 @@ if __name__ == '__main__':
550
  ).launch(
551
  share=config.share,
552
  max_threads=1,
 
553
  )
 
81
  logger.info(f"Converting using {model_name}...")
82
  logs.append(f"Converting using {model_name}...")
83
  yield "\n".join(logs), None
 
84
  if vc_audio_mode == "Input path" or "Youtube" and vc_input != "":
85
  audio = load_audio(vc_input, 16000)
86
  audio_max = np.abs(audio).max() / 0.95
 
549
  ).launch(
550
  share=config.share,
551
  max_threads=1,
552
+ allowed_paths="weights/*"
553
  )