Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -91,9 +91,9 @@ def analyze(path):
|
|
91 |
bass_path = file_path
|
92 |
if "vocals.wav" in file_path:
|
93 |
vocals_path = file_path
|
94 |
-
if "
|
95 |
other_path = file_path
|
96 |
-
if "
|
97 |
drums_path = file_path
|
98 |
|
99 |
#return result.bpm, fig, sonif_path, elapsed_time
|
@@ -146,7 +146,7 @@ with gr.Blocks() as demo:
|
|
146 |
fn=analyze,
|
147 |
inputs=input_audio_path,
|
148 |
#outputs=[output_bpm, output_viz, output_sonif, elapsed_time],
|
149 |
-
outputs=[output_bpm, elapsed_time,
|
150 |
api_name='analyze',
|
151 |
)
|
152 |
|
|
|
91 |
bass_path = file_path
|
92 |
if "vocals.wav" in file_path:
|
93 |
vocals_path = file_path
|
94 |
+
if "other.wav" in file_path:
|
95 |
other_path = file_path
|
96 |
+
if "drums.wav" in file_path:
|
97 |
drums_path = file_path
|
98 |
|
99 |
#return result.bpm, fig, sonif_path, elapsed_time
|
|
|
146 |
fn=analyze,
|
147 |
inputs=input_audio_path,
|
148 |
#outputs=[output_bpm, output_viz, output_sonif, elapsed_time],
|
149 |
+
outputs=[output_bpm, elapsed_time, bass, drums, other, vocals],
|
150 |
api_name='analyze',
|
151 |
)
|
152 |
|