ofermend commited on
Commit
2b8dfc5
1 Parent(s): f026aa7
Files changed (1) hide show
  1. app.py +3 -0
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.