feat: improve performance by implementing lazy loading, caching, and efficient file handling in alwrity.py and alwrity_utils.py

This commit is contained in:
ajaysi (aider)
2024-09-14 17:36:46 +05:30
parent dded2180f3
commit 6fe6c52d99
2 changed files with 8 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ from lib.content_planning_calender.content_planning_agents_alwrity_crew import a
from ..gpt_providers.text_generation.main_text_generation import llm_text_gen
@st.cache_data
def record_voice(language="en"):
# https://github.com/B4PT0R/streamlit-mic-recorder?tab=readme-ov-file#example
state = st.session_state