Synnove commited on
Commit
9491d2f
·
verified ·
1 Parent(s): d92f8e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ custom_role_conversions=None,
56
  #final_answer = FinalAnswerTool()
57
 
58
  #Agent
59
- agent = CodeAgent(
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 = BasicAgent()
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}")