Spaces:
Runtime error
Runtime error
fix: remove paths and viz
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def analyze(path):
|
|
101 |
drums_path = file_path
|
102 |
|
103 |
#return result.bpm, fig, sonif_path, elapsed_time
|
104 |
-
return result.bpm,
|
105 |
|
106 |
|
107 |
with gr.Blocks() as demo:
|
@@ -115,7 +115,7 @@ with gr.Blocks() as demo:
|
|
115 |
show_download_button=False,
|
116 |
)
|
117 |
button = gr.Button('Analyze', variant='primary')
|
118 |
-
output_viz = gr.Plot(label='Visualization')
|
119 |
with gr.Row():
|
120 |
output_bpm = gr.Textbox(label='BPM', scale=1)
|
121 |
#output_sonif = gr.Audio(
|
@@ -127,11 +127,11 @@ with gr.Blocks() as demo:
|
|
127 |
#)
|
128 |
elapsed_time = gr.Textbox(label='Overall inference time', scale=1)
|
129 |
json_structure_output = gr.File(label="Json structure")
|
130 |
-
with gr.Column():
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
#bass_path = gr.Textbox(label='bass_path', scale=1)
|
136 |
#drums_path = gr.Textbox(label='drums_path', scale=1)
|
137 |
#other_path = gr.Textbox(label='other_path', scale=1)
|
|
|
101 |
drums_path = file_path
|
102 |
|
103 |
#return result.bpm, fig, sonif_path, elapsed_time
|
104 |
+
return result.bpm, elapsed_time, json_structure_output
|
105 |
|
106 |
|
107 |
with gr.Blocks() as demo:
|
|
|
115 |
show_download_button=False,
|
116 |
)
|
117 |
button = gr.Button('Analyze', variant='primary')
|
118 |
+
# output_viz = gr.Plot(label='Visualization')
|
119 |
with gr.Row():
|
120 |
output_bpm = gr.Textbox(label='BPM', scale=1)
|
121 |
#output_sonif = gr.Audio(
|
|
|
127 |
#)
|
128 |
elapsed_time = gr.Textbox(label='Overall inference time', scale=1)
|
129 |
json_structure_output = gr.File(label="Json structure")
|
130 |
+
# with gr.Column():
|
131 |
+
# bass = gr.Audio(label='bass', show_share_button=False)
|
132 |
+
# vocals =gr.Audio(label='vocals', show_share_button=False)
|
133 |
+
# other = gr.Audio(label='other', show_share_button=False)
|
134 |
+
# drums =gr.Audio(label='drums', show_share_button=False)
|
135 |
#bass_path = gr.Textbox(label='bass_path', scale=1)
|
136 |
#drums_path = gr.Textbox(label='drums_path', scale=1)
|
137 |
#other_path = gr.Textbox(label='other_path', scale=1)
|