Spaces:
Running
Running
bugfix
Browse files
app.py
CHANGED
@@ -78,6 +78,9 @@ def create_tools(cfg):
|
|
78 |
)
|
79 |
|
80 |
def initialize_agent(_cfg):
|
|
|
|
|
|
|
81 |
bot_instructions = f"""
|
82 |
- You are a helpful teacher assistant, with expertise in education in various teaching styles.
|
83 |
- Obtain information using tools to answer the user's query.
|
|
|
78 |
)
|
79 |
|
80 |
def initialize_agent(_cfg):
|
81 |
+
if 'agent' in st.session_state:
|
82 |
+
return st.session_state.agent
|
83 |
+
|
84 |
bot_instructions = f"""
|
85 |
- You are a helpful teacher assistant, with expertise in education in various teaching styles.
|
86 |
- Obtain information using tools to answer the user's query.
|