Spaces:
Running
Running
bugfix
Browse files
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.
|