JBHF commited on
Commit
a779418
·
verified ·
1 Parent(s): 772a2be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ audio = audiorecorder("Click to record", "Click to stop recording", "Click to pa
79
  # JB:
80
  # https://docs.streamlit.io/develop/concepts/architecture/caching
81
  # @st.cache_data
82
- @st.cache_data
83
  def audio_export(audio_wav_file, format):
84
  # audio.export("audio.wav", format="wav") # ORIGINAL
85
  audio.export(audio_wav_file, format=format)
 
79
  # JB:
80
  # https://docs.streamlit.io/develop/concepts/architecture/caching
81
  # @st.cache_data
82
+ @st.cache_resource # 👈 Add the caching decorator
83
  def audio_export(audio_wav_file, format):
84
  # audio.export("audio.wav", format="wav") # ORIGINAL
85
  audio.export(audio_wav_file, format=format)