Commit
·
422c5e7
1
Parent(s):
26ffebf
Update app.py
Browse files
app.py
CHANGED
@@ -17,18 +17,13 @@ def main():
|
|
17 |
"""
|
18 |
)
|
19 |
|
20 |
-
|
21 |
with gr.Column():
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
image_output = gr.Image(type='filepath', interactive=False)
|
28 |
-
|
29 |
-
create_spec_butt.click(fn=create_spectrogram_and_get_info, inputs=[audio_input], outputs=[output_markdown, image_output])
|
30 |
-
|
31 |
-
app.queue(max_size=1022).launch(share=True)
|
32 |
|
33 |
def create_spectrogram_and_get_info(audio_file):
|
34 |
# Clear figure in case it has data in it
|
|
|
17 |
"""
|
18 |
)
|
19 |
|
20 |
+
with gr.Row():
|
21 |
with gr.Column():
|
22 |
+
audio_input = gr.Audio(type='filepath')
|
23 |
+
create_spec_butt = gr.Button(value='Create Spectrogram And Get Info', variant='primary')
|
24 |
+
with gr.Column():
|
25 |
+
output_markdown = gr.Markdown(value="", visible=True)
|
26 |
+
image_output = gr.Image(type='filepath', interactive=False)
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
def create_spectrogram_and_get_info(audio_file):
|
29 |
# Clear figure in case it has data in it
|