Spaces:
Running
on
Zero
Running
on
Zero
fix-misc-changes
#5
by
shahul01
- opened
- .gitignore +3 -0
- app.py +2 -3
- requirements.txt +14 -1
.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
venv
|
| 2 |
+
__pycache__
|
| 3 |
+
# clean_song_output
|
app.py
CHANGED
|
@@ -31,7 +31,6 @@ import time
|
|
| 31 |
import traceback
|
| 32 |
from pedalboard import Pedalboard, Reverb, Delay, Chorus, Compressor, Gain, HighpassFilter, LowpassFilter
|
| 33 |
from pedalboard.io import AudioFile
|
| 34 |
-
import numpy as np
|
| 35 |
import yt_dlp
|
| 36 |
|
| 37 |
warnings.filterwarnings("ignore")
|
|
@@ -765,7 +764,7 @@ def add_instrumental_effects(input_file, output_file, highpass_freq=100, lowpass
|
|
| 765 |
effected = board(chunk, f.samplerate, reset=False)
|
| 766 |
o.write(effected)
|
| 767 |
|
| 768 |
-
|
| 769 |
def sound_separate(media_file, stem, main, dereverb, vocal_effects=True, background_effects=True,
|
| 770 |
vocal_reverb_room_size=0.6, vocal_reverb_damping=0.6, vocal_reverb_wet_level=0.35,
|
| 771 |
vocal_delay_seconds=0.4, vocal_delay_mix=0.25,
|
|
@@ -875,7 +874,7 @@ def sound_separate(media_file, stem, main, dereverb, vocal_effects=True, backgro
|
|
| 875 |
print("Duration audio:", duration_base_)
|
| 876 |
except Exception as e:
|
| 877 |
print(e)
|
| 878 |
-
|
| 879 |
start_time = time.time()
|
| 880 |
|
| 881 |
if stem == "vocal":
|
|
|
|
| 31 |
import traceback
|
| 32 |
from pedalboard import Pedalboard, Reverb, Delay, Chorus, Compressor, Gain, HighpassFilter, LowpassFilter
|
| 33 |
from pedalboard.io import AudioFile
|
|
|
|
| 34 |
import yt_dlp
|
| 35 |
|
| 36 |
warnings.filterwarnings("ignore")
|
|
|
|
| 764 |
effected = board(chunk, f.samplerate, reset=False)
|
| 765 |
o.write(effected)
|
| 766 |
|
| 767 |
+
|
| 768 |
def sound_separate(media_file, stem, main, dereverb, vocal_effects=True, background_effects=True,
|
| 769 |
vocal_reverb_room_size=0.6, vocal_reverb_damping=0.6, vocal_reverb_wet_level=0.35,
|
| 770 |
vocal_delay_seconds=0.4, vocal_delay_mix=0.25,
|
|
|
|
| 874 |
print("Duration audio:", duration_base_)
|
| 875 |
except Exception as e:
|
| 876 |
print(e)
|
| 877 |
+
|
| 878 |
start_time = time.time()
|
| 879 |
|
| 880 |
if stem == "vocal":
|
requirements.txt
CHANGED
|
@@ -2,4 +2,17 @@ soundfile
|
|
| 2 |
librosa
|
| 3 |
torch==2.2.0
|
| 4 |
pedalboard
|
| 5 |
-
yt-dlp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
librosa
|
| 3 |
torch==2.2.0
|
| 4 |
pedalboard
|
| 5 |
+
yt-dlp
|
| 6 |
+
tqdm
|
| 7 |
+
spaces
|
| 8 |
+
onnxruntime
|
| 9 |
+
# use numpy<2 if giving error
|
| 10 |
+
numpy
|
| 11 |
+
gradio
|
| 12 |
+
ffmpeg-python
|
| 13 |
+
scipy
|
| 14 |
+
scikit-learn
|
| 15 |
+
matplotlib
|
| 16 |
+
seaborn
|
| 17 |
+
requests
|
| 18 |
+
urllib3
|