ageraustine commited on
Commit
902afe3
·
verified ·
1 Parent(s): 1b59ec7

cache agent

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -4,7 +4,11 @@ from streamlit_chat import message
4
  import os
5
  from agent import ReActAgent
6
 
7
- agent = ReActAgent()
 
 
 
 
8
 
9
  #Streamlit app layout
10
  st.title("Bliff AI")
 
4
  import os
5
  from agent import ReActAgent
6
 
7
+ @st.cache_resource
8
+ def get_agent():
9
+ return ReActAgent()
10
+
11
+ agent = get_agent()
12
 
13
  #Streamlit app layout
14
  st.title("Bliff AI")