Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -85,11 +85,9 @@ class ExcelPandasAgent:
|
|
85 |
self.llm,
|
86 |
df,
|
87 |
verbose=True,
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
"max_execution_time": 300, # <-- Increased time limit in seconds
|
92 |
-
},
|
93 |
allow_dangerous_code=True
|
94 |
)
|
95 |
# Invoke the agent with the user's query.
|
|
|
85 |
self.llm,
|
86 |
df,
|
87 |
verbose=True,
|
88 |
+
max_iterations=50, # <-- Correct placement
|
89 |
+
max_execution_time=300, # <-- Correct placement
|
90 |
+
agent_executor_kwargs={"handle_parsing_errors": True},
|
|
|
|
|
91 |
allow_dangerous_code=True
|
92 |
)
|
93 |
# Invoke the agent with the user's query.
|