Spaces:
Runtime error
Runtime error
pengdaqian
commited on
Commit
·
73384d6
1
Parent(s):
0310e05
fix
Browse files- app.py +2 -3
- requirements.txt +1 -2
app.py
CHANGED
@@ -18,7 +18,6 @@ from spleeter.separator import Separator
|
|
18 |
from spleeter.audio.adapter import AudioAdapter
|
19 |
from pydub import AudioSegment
|
20 |
import uuid
|
21 |
-
from audio2numpy import open_audio
|
22 |
|
23 |
import logging
|
24 |
|
@@ -255,8 +254,8 @@ def auto_search(name):
|
|
255 |
|
256 |
if not os.path.exists(save_path):
|
257 |
return "Not Found", None
|
258 |
-
|
259 |
-
signal, sampling_rate = open_audio(save_path)
|
260 |
|
261 |
return "Found a music", (sampling_rate, signal)
|
262 |
|
|
|
18 |
from spleeter.audio.adapter import AudioAdapter
|
19 |
from pydub import AudioSegment
|
20 |
import uuid
|
|
|
21 |
|
22 |
import logging
|
23 |
|
|
|
254 |
|
255 |
if not os.path.exists(save_path):
|
256 |
return "Not Found", None
|
257 |
+
signal, sampling_rate = soundfile.read(save_path, dtype=np.int16)
|
258 |
+
# signal, sampling_rate = open_audio(save_path)
|
259 |
|
260 |
return "Found a music", (sampling_rate, signal)
|
261 |
|
requirements.txt
CHANGED
@@ -15,5 +15,4 @@ librosa
|
|
15 |
pydub
|
16 |
musicdl
|
17 |
spleeter
|
18 |
-
yt-dlp
|
19 |
-
audio2numpy
|
|
|
15 |
pydub
|
16 |
musicdl
|
17 |
spleeter
|
18 |
+
yt-dlp
|
|