Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -148,7 +148,7 @@ def predict_song_from_yt(
|
|
148 |
absolute_thresh: bool = False,
|
149 |
):
|
150 |
original_track_filepath = download_youtube_clip(ytid, start, end, "track.wav", force=True)
|
151 |
-
vox_wav, inst_wav = extract_vocal_demucs(demucs_model, original_track_filepath
|
152 |
if transpose != 0:
|
153 |
inst_wav = librosa.effects.pitch_shift(inst_wav.T, sr=model.target_sample, n_steps=transpose).T
|
154 |
cloned_vox = model.infer_silence(
|
|
|
148 |
absolute_thresh: bool = False,
|
149 |
):
|
150 |
original_track_filepath = download_youtube_clip(ytid, start, end, "track.wav", force=True)
|
151 |
+
vox_wav, inst_wav = extract_vocal_demucs(demucs_model, original_track_filepath)
|
152 |
if transpose != 0:
|
153 |
inst_wav = librosa.effects.pitch_shift(inst_wav.T, sr=model.target_sample, n_steps=transpose).T
|
154 |
cloned_vox = model.infer_silence(
|