Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def analyze(path):
|
|
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
|
77 |
compressed_file = compress_files(f"demix/htdemucs/{path.stem}", dissector_file)
|
78 |
|
79 |
return result.bpm, fig, sonif_path, compressed_file
|
@@ -106,8 +106,9 @@ with gr.Blocks() as demo:
|
|
106 |
)
|
107 |
gr.Examples(
|
108 |
examples=[
|
109 |
-
|
110 |
-
'./assets/
|
|
|
111 |
],
|
112 |
inputs=input_audio_path,
|
113 |
outputs=[output_bpm, output_viz, output_sonif, output_compressed],
|
|
|
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)
|
77 |
compressed_file = compress_files(f"demix/htdemucs/{path.stem}", dissector_file)
|
78 |
|
79 |
return result.bpm, fig, sonif_path, compressed_file
|
|
|
106 |
)
|
107 |
gr.Examples(
|
108 |
examples=[
|
109 |
+
'./assets/krematorii.mp3',
|
110 |
+
# './assets/NewJeans - Super Shy.mp3',
|
111 |
+
# './assets/Bruno Mars - 24k Magic.mp3'
|
112 |
],
|
113 |
inputs=input_audio_path,
|
114 |
outputs=[output_bpm, output_viz, output_sonif, output_compressed],
|