Synnove commited on
Commit
9695569
·
verified ·
1 Parent(s): 8b6c38c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -53,12 +53,12 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
53
  custom_role_conversions=None,
54
  )
55
 
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,
63
  verbosity_level=1,
64
  grammar=None,
@@ -68,7 +68,6 @@ agent_codeagent = CodeAgent(
68
  #prompt_templates=prompt_templates
69
  )
70
 
71
- #
72
 
73
  def run_and_submit_one():
74
  # 1. Instantiate Agent ( modify this part to create your agent)
 
53
  custom_role_conversions=None,
54
  )
55
 
56
+ final_answer = FinalAnswerTool()
57
 
58
  #Agent
59
  agent_codeagent = CodeAgent(
60
  model=model,
61
+ tools=[final_answer], ## add your tools here (don't remove final answer)
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,
 
68
  #prompt_templates=prompt_templates
69
  )
70
 
 
71
 
72
  def run_and_submit_one():
73
  # 1. Instantiate Agent ( modify this part to create your agent)