TheStinger commited on
Commit
bd89bd4
1 Parent(s): cb85b93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -29,7 +29,7 @@ def main():
29
 
30
  app.queue(max_size=1022).launch(share=True)
31
 
32
- def create_spectrogram_and_get_info(audio_file, output_markdown):
33
  # Clear figure in case it has data in it
34
  plt.clf()
35
 
@@ -79,15 +79,8 @@ def create_spectrogram_and_get_info(audio_file, output_markdown):
79
  </center>
80
  """
81
 
82
- # Delete the audio file after analyzing it
83
- os.remove(audio_file)
84
-
85
- # Clear the markdown content
86
- output_markdown.update({"value": "", "__type__": "update"})
87
-
88
  # Return the PNG file of the spectrogram and the info table
89
  return info_table, 'spectrogram.png'
90
 
91
-
92
  # Create the Gradio interface
93
  main()
 
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
34
  plt.clf()
35
 
 
79
  </center>
80
  """
81
 
 
 
 
 
 
 
82
  # Return the PNG file of the spectrogram and the info table
83
  return info_table, 'spectrogram.png'
84
 
 
85
  # Create the Gradio interface
86
  main()