JBHF commited on
Commit
c2e6e86
1 Parent(s): 3c41b83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -80,6 +80,9 @@ if len(audio) > 0:
80
  st.audio(audio.export().read())
81
 
82
  # To save audio to a file, use pydub export method:
 
 
 
83
  audio.export("audio.wav", format="wav")
84
 
85
  # To get audio properties, use pydub AudioSegment properties:
 
80
  st.audio(audio.export().read())
81
 
82
  # To save audio to a file, use pydub export method:
83
+ # https://docs.streamlit.io/develop/concepts/architecture/caching
84
+ # @st.cache_data
85
+ @st.cache_data
86
  audio.export("audio.wav", format="wav")
87
 
88
  # To get audio properties, use pydub AudioSegment properties: