fix: remove caching from record_voice function to resolve CachedWidgetWarning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user