ofermend commited on
Commit
dce4d82
1 Parent(s): a6a85af
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -131,10 +131,12 @@ def initialize_agent(_cfg):
131
 
132
  agent = Agent(
133
  tools=create_tools(_cfg),
134
- topic="10-K annual financial reports",
135
  custom_instructions=financial_bot_instructions,
136
  update_func=update_func
137
  )
 
 
138
  return agent
139
 
140
 
@@ -156,6 +158,7 @@ def launch_bot():
156
  st.session_state.thinking_message = "Agent at work..."
157
  st.session_state.log_messages = []
158
  st.session_state.prompt = None
 
159
  st.session_state.show_logs = False
160
  st.session_state.first_turn = True
161
 
@@ -192,6 +195,7 @@ def launch_bot():
192
  with bc1:
193
  if st.button('Start Over'):
194
  reset()
 
195
 
196
  st.markdown("---")
197
  st.markdown(
 
131
 
132
  agent = Agent(
133
  tools=create_tools(_cfg),
134
+ topic="Financial data, annual reports and 10-K filings",
135
  custom_instructions=financial_bot_instructions,
136
  update_func=update_func
137
  )
138
+ agent.report()
139
+
140
  return agent
141
 
142
 
 
158
  st.session_state.thinking_message = "Agent at work..."
159
  st.session_state.log_messages = []
160
  st.session_state.prompt = None
161
+ st.session_state.ex_prompt = None
162
  st.session_state.show_logs = False
163
  st.session_state.first_turn = True
164
 
 
195
  with bc1:
196
  if st.button('Start Over'):
197
  reset()
198
+ st.rerun()
199
 
200
  st.markdown("---")
201
  st.markdown(