Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ custom_role_conversions=None,
|
|
| 56 |
#final_answer = FinalAnswerTool()
|
| 57 |
|
| 58 |
#Agent
|
| 59 |
-
|
| 60 |
model=model,
|
| 61 |
tools=[], #tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 62 |
max_steps=6,
|
|
@@ -73,7 +73,7 @@ agent = CodeAgent(
|
|
| 73 |
def run_and_submit_one():
|
| 74 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 75 |
try:
|
| 76 |
-
agent =
|
| 77 |
|
| 78 |
except Exception as e:
|
| 79 |
print(f"Error instantiating agent: {e}")
|
|
|
|
| 56 |
#final_answer = FinalAnswerTool()
|
| 57 |
|
| 58 |
#Agent
|
| 59 |
+
agent_codeagent = CodeAgent(
|
| 60 |
model=model,
|
| 61 |
tools=[], #tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 62 |
max_steps=6,
|
|
|
|
| 73 |
def run_and_submit_one():
|
| 74 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 75 |
try:
|
| 76 |
+
agent = agent_codeagent
|
| 77 |
|
| 78 |
except Exception as e:
|
| 79 |
print(f"Error instantiating agent: {e}")
|