ofermend commited on
Commit
e7ab0c3
1 Parent(s): d015953
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -112,6 +112,9 @@ def create_tools(cfg):
112
  )
113
 
114
  def initialize_agent(_cfg):
 
 
 
115
  financial_bot_instructions = """
116
  - You are a helpful financial assistant, with expertise in financial reporting, in conversation with a user.
117
  - Never discuss politics, and always respond politely.
 
112
  )
113
 
114
  def initialize_agent(_cfg):
115
+ if 'agent' in st.session_state:
116
+ return st.session_state.agent
117
+
118
  financial_bot_instructions = """
119
  - You are a helpful financial assistant, with expertise in financial reporting, in conversation with a user.
120
  - Never discuss politics, and always respond politely.