test: undo
Browse files
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 |
-
|
49 |
-
|
|
|
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
|