Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,17 +49,14 @@ def analyze(path):
|
|
| 49 |
start = time.time()
|
| 50 |
|
| 51 |
path = Path(path)
|
| 52 |
-
result = allin1.analyze(
|
| 53 |
path,
|
| 54 |
out_dir='./struct',
|
| 55 |
multiprocess=False,
|
| 56 |
keep_byproducts=True, # TODO: remove this
|
| 57 |
)
|
| 58 |
|
| 59 |
-
|
| 60 |
-
for root, dirs, files in os.walk("./demix"):
|
| 61 |
-
for file in files:
|
| 62 |
-
paths.append(os.path.join(root, file))
|
| 63 |
#fig = allin1.visualize(
|
| 64 |
# result,
|
| 65 |
# multiprocess=False,
|
|
@@ -78,7 +75,7 @@ def analyze(path):
|
|
| 78 |
elapsed_time = end-start
|
| 79 |
|
| 80 |
#return result.bpm, fig, sonif_path, elapsed_time
|
| 81 |
-
return result.bpm, elapsed_time,
|
| 82 |
|
| 83 |
|
| 84 |
with gr.Blocks() as demo:
|
|
|
|
| 49 |
start = time.time()
|
| 50 |
|
| 51 |
path = Path(path)
|
| 52 |
+
result, bass_path, drums_path, other_path, vocals_path = allin1.analyze(
|
| 53 |
path,
|
| 54 |
out_dir='./struct',
|
| 55 |
multiprocess=False,
|
| 56 |
keep_byproducts=True, # TODO: remove this
|
| 57 |
)
|
| 58 |
|
| 59 |
+
|
|
|
|
|
|
|
|
|
|
| 60 |
#fig = allin1.visualize(
|
| 61 |
# result,
|
| 62 |
# multiprocess=False,
|
|
|
|
| 75 |
elapsed_time = end-start
|
| 76 |
|
| 77 |
#return result.bpm, fig, sonif_path, elapsed_time
|
| 78 |
+
return result.bpm, elapsed_time, bass_path, drums_path, other_path, vocals_path
|
| 79 |
|
| 80 |
|
| 81 |
with gr.Blocks() as demo:
|