fix: remove caching from record_voice function to resolve CachedWidgetWarning

This commit is contained in:
ajaysi (aider)
2024-09-14 18:01:25 +05:30
parent 5938dcf6e4
commit 93075dc833

View File

@@ -1,7 +1,6 @@
import streamlit as st
from streamlit_mic_recorder import speech_to_text
@st.cache_data
def record_voice(language="en"):
# https://github.com/B4PT0R/streamlit-mic-recorder?tab=readme-ov-file#example
state = st.session_state