TheStinger commited on
Commit
1ad3bd6
β€’
1 Parent(s): f8edaa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -10,10 +10,10 @@ def main():
10
  gr.Markdown(
11
  """
12
  # <div align="center"> Ilaria Audio Analyzer πŸ’– (BETA) </div>
13
- Audio Analyzer Software by Ilaria, Help me on [Ko-Fi](https://ko-fi.com/ilariaowo)\n
14
- Special thanks to [Alex Murkoff](https://github.com/alexlnkp) for helping me coding it!
15
 
16
- Need help with AI? [Join AI Hub!](https://discord.gg/aihub)
17
  """
18
  )
19
 
@@ -23,7 +23,11 @@ def main():
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
@@ -72,4 +76,4 @@ def create_spectrogram_and_get_info(audio_file):
72
  return info_table, 'spectrogram.png'
73
 
74
  # Create the Gradio interface
75
- main()
 
10
  gr.Markdown(
11
  """
12
  # <div align="center"> Ilaria Audio Analyzer πŸ’– (BETA) </div>
13
+ Audio Analyzer Software by Ilaria, Help me on Ko-Fi\n
14
+ Special thanks to Alex Murkoff for helping me coding it!
15
 
16
+ Need help with AI? Join AI Hub!
17
  """
18
  )
19
 
 
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
+ create_spec_butt.click(fn=create_spectrogram_and_get_info, inputs=[audio_input], outputs=[output_markdown, image_output])
29
+
30
+ app.queue(max_size=1022).launch(share=True)
31
 
32
  def create_spectrogram_and_get_info(audio_file):
33
  # Clear figure in case it has data in it
 
76
  return info_table, 'spectrogram.png'
77
 
78
  # Create the Gradio interface
79
+ main()