Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,18 +72,8 @@ def analyze(path):
|
|
| 72 |
|
| 73 |
allin1.sonify(result, out_dir='./sonif')
|
| 74 |
sonif_path = Path(f'./sonif/{path.stem}.sonif{path.suffix}').resolve().as_posix()
|
| 75 |
-
|
| 76 |
-
def recursive_listdir(path="."):
|
| 77 |
-
for root, dirs, files in os.walk(path):
|
| 78 |
-
print('VPDBG: root', root)
|
| 79 |
-
for name in dirs:
|
| 80 |
-
print('VPDBG: dirs', os.path.join(root, name))
|
| 81 |
-
for name in files:
|
| 82 |
-
print('VPDBG: files', os.path.join(root, name))
|
| 83 |
-
|
| 84 |
-
recursive_listdir()
|
| 85 |
|
| 86 |
-
dissector_file = generate_dissector_data(path.stem)
|
| 87 |
compressed_file = compress_files(f"demix/htdemucs/{path.stem}", dissector_file)
|
| 88 |
|
| 89 |
return result.bpm, fig, sonif_path, compressed_file
|
|
|
|
| 72 |
|
| 73 |
allin1.sonify(result, out_dir='./sonif')
|
| 74 |
sonif_path = Path(f'./sonif/{path.stem}.sonif{path.suffix}').resolve().as_posix()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
dissector_file = generate_dissector_data(path.stem, result)
|
| 77 |
compressed_file = compress_files(f"demix/htdemucs/{path.stem}", dissector_file)
|
| 78 |
|
| 79 |
return result.bpm, fig, sonif_path, compressed_file
|