Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix(app): fix youtube link error
Browse files- app-full.py +2 -2
app-full.py
CHANGED
@@ -100,14 +100,14 @@ def cut_vocal_and_inst(yt_url):
|
|
100 |
command = f"demucs --two-stems=vocals {yt_audio_path}"
|
101 |
result = subprocess.run(command.split(), stdout=subprocess.PIPE)
|
102 |
print(result.stdout.decode())
|
103 |
-
return ("/content/rvc-models/separated/htdemucs/audio/vocals.wav", "/content/rvc-models/separated/htdemucs/audio/no_vocals.wav", yt_audio_path, "/content/rvc-models/separated/htdemucs/audio/vocals.wav")
|
104 |
|
105 |
def combine_vocal_and_inst(audio_data, audio_volume):
|
106 |
print(audio_data)
|
107 |
if not os.path.exists("/content/result"):
|
108 |
os.mkdir("/content/result")
|
109 |
vocal_path = "/content/result/output.wav"
|
110 |
-
inst_path = "/content/rvc-models/separated/htdemucs/audio/no_vocals.wav"
|
111 |
output_path = "/content/result/combine.mp3"
|
112 |
with wave.open(vocal_path, "w") as wave_file:
|
113 |
wave_file.setnchannels(1)
|
|
|
100 |
command = f"demucs --two-stems=vocals {yt_audio_path}"
|
101 |
result = subprocess.run(command.split(), stdout=subprocess.PIPE)
|
102 |
print(result.stdout.decode())
|
103 |
+
return ("/content/rvc-models-new/separated/htdemucs/audio/vocals.wav", "/content/rvc-models-new/separated/htdemucs/audio/no_vocals.wav", yt_audio_path, "/content/rvc-models-new/separated/htdemucs/audio/vocals.wav")
|
104 |
|
105 |
def combine_vocal_and_inst(audio_data, audio_volume):
|
106 |
print(audio_data)
|
107 |
if not os.path.exists("/content/result"):
|
108 |
os.mkdir("/content/result")
|
109 |
vocal_path = "/content/result/output.wav"
|
110 |
+
inst_path = "/content/rvc-models-new/separated/htdemucs/audio/no_vocals.wav"
|
111 |
output_path = "/content/result/combine.mp3"
|
112 |
with wave.open(vocal_path, "w") as wave_file:
|
113 |
wave_file.setnchannels(1)
|