Spaces:
Runtime error
Runtime error
cache agent
Browse files
app.py
CHANGED
|
@@ -4,7 +4,11 @@ from streamlit_chat import message
|
|
| 4 |
import os
|
| 5 |
from agent import ReActAgent
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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")
|