helloWorld199 commited on
Commit
13adf18
1 Parent(s): dddfb2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 "bass.wav" in file_path:
95
  other_path = file_path
96
- if "bass.wav" in file_path:
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, bass_path, drums_path, other_path, vocals_path],
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