Adityabhaskar commited on
Commit
995d24d
·
verified ·
1 Parent(s): 870800d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -85,11 +85,9 @@ class ExcelPandasAgent:
85
  self.llm,
86
  df,
87
  verbose=True,
88
- agent_executor_kwargs={
89
- "handle_parsing_errors": True,
90
- "max_iterations": 50, # <-- Increased iteration limit
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.