ofermend commited on
Commit
70197d7
1 Parent(s): dce4d82
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def create_tools(cfg):
86
  ask_transcripts = tools_factory.create_rag_tool(
87
  tool_name = "ask_transcripts",
88
  tool_description = """
89
- Given a company name and year, response to a user question about the company, based on analyst call transcripts about the company's financial reports for that year.
90
  You can ask this tool any question about the compaany including risks, opportunities, financial performance, competitors and more.
91
  """,
92
  tool_args_schema = QueryTranscriptsArgs,
@@ -136,7 +136,7 @@ def initialize_agent(_cfg):
136
  update_func=update_func
137
  )
138
  agent.report()
139
-
140
  return agent
141
 
142
 
@@ -217,6 +217,7 @@ def launch_bot():
217
  with example_container:
218
  if show_example_questions():
219
  example_container.empty()
 
220
  st.rerun()
221
 
222
  # User-provided prompt
 
86
  ask_transcripts = tools_factory.create_rag_tool(
87
  tool_name = "ask_transcripts",
88
  tool_description = """
89
+ Given a company name and year, responds to a user question about the company, based on analyst call transcripts about the company's financial reports for that year.
90
  You can ask this tool any question about the compaany including risks, opportunities, financial performance, competitors and more.
91
  """,
92
  tool_args_schema = QueryTranscriptsArgs,
 
136
  update_func=update_func
137
  )
138
  agent.report()
139
+
140
  return agent
141
 
142
 
 
217
  with example_container:
218
  if show_example_questions():
219
  example_container.empty()
220
+ st.session_state.first_turn = False
221
  st.rerun()
222
 
223
  # User-provided prompt