Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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)
|