Update app.py
Browse files
app.py
CHANGED
|
@@ -165,7 +165,9 @@ def load_llm_and_agent_singleton(df):
|
|
| 165 |
llm,
|
| 166 |
df,
|
| 167 |
verbose=True,
|
| 168 |
-
|
|
|
|
|
|
|
| 169 |
agent_type="openai-tools",
|
| 170 |
allow_dangerous_code=True
|
| 171 |
)
|
|
|
|
| 165 |
llm,
|
| 166 |
df,
|
| 167 |
verbose=True,
|
| 168 |
+
max_iterations=10,
|
| 169 |
+
handle_parsing_errors=True,
|
| 170 |
+
agent_executor_kwargs={"system_message": system_message_content}, # Pass system message here
|
| 171 |
agent_type="openai-tools",
|
| 172 |
allow_dangerous_code=True
|
| 173 |
)
|