Spaces:
Runtime error
Runtime error
Commit
·
6532dec
1
Parent(s):
9a3cbb5
current currentagent defect
Browse files
app.py
CHANGED
@@ -94,7 +94,8 @@ from interpreter.code_interpreter import CodeInterpreter
|
|
94 |
|
95 |
import regex
|
96 |
|
97 |
-
|
|
|
98 |
|
99 |
class CodeBlock:
|
100 |
'''
|
@@ -1169,8 +1170,7 @@ agent_OPENAI_MULTI = AgentExecutor.from_agent_and_tools(
|
|
1169 |
# agent.max_execution_time = int(os.getenv("max_iterations"))
|
1170 |
# agent.handle_parsing_errors = True
|
1171 |
# agent.early_stopping_method = "generate"
|
1172 |
-
|
1173 |
-
CurrentAgent = ""
|
1174 |
|
1175 |
def SetAgent(Choice):
|
1176 |
global agent
|
|
|
94 |
|
95 |
import regex
|
96 |
|
97 |
+
global CurrentAgent
|
98 |
+
CurrentAgent = os.environ["agent_type"]
|
99 |
|
100 |
class CodeBlock:
|
101 |
'''
|
|
|
1170 |
# agent.max_execution_time = int(os.getenv("max_iterations"))
|
1171 |
# agent.handle_parsing_errors = True
|
1172 |
# agent.early_stopping_method = "generate"
|
1173 |
+
|
|
|
1174 |
|
1175 |
def SetAgent(Choice):
|
1176 |
global agent
|