Spaces:
Runtime error
Runtime error
Commit
·
b3b9aaa
1
Parent(s):
0209368
add os var of iteration
Browse files
app.py
CHANGED
|
@@ -129,7 +129,7 @@ agent = initialize_agent(tools, llm,
|
|
| 129 |
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
|
| 130 |
verbose = True,
|
| 131 |
handle_parsing_errors = True,
|
| 132 |
-
max_iterations =
|
| 133 |
agent_kwargs={
|
| 134 |
'prefix': PREFIX,
|
| 135 |
'format_instructions': FORMAT_INSTRUCTIONS,
|
|
|
|
| 129 |
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
|
| 130 |
verbose = True,
|
| 131 |
handle_parsing_errors = True,
|
| 132 |
+
max_iterations = int(os.getenv("max_iterations")) ,
|
| 133 |
agent_kwargs={
|
| 134 |
'prefix': PREFIX,
|
| 135 |
'format_instructions': FORMAT_INSTRUCTIONS,
|