thatting commited on
Commit
4705a91
·
verified ·
1 Parent(s): bec0bbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -65,7 +65,15 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
65
 
66
  # 1. Instantiate Agent ( modify this part to create your agent)
67
  try:
68
- agent = CodeAgent(tools=[DuckDuckGoSearchTool(), VisitWebpageTool(), PythonInterpreterTool(), SpeechToTextTool()], model=model)
 
 
 
 
 
 
 
 
69
  except Exception as e:
70
  print(f"Error instantiating agent: {e}")
71
  return f"Error initializing agent: {e}", None
 
65
 
66
  # 1. Instantiate Agent ( modify this part to create your agent)
67
  try:
68
+ agent = CodeAgent(model=model,
69
+ tools=[DuckDuckGoSearchTool(), VisitWebpageTool(), final_answer],
70
+ max_steps=6,
71
+ verbosity_level=1,
72
+ grammar=None,
73
+ planning_interval=None,
74
+ name=None,
75
+ description=None,
76
+ prompt_templates=prompt_templates)
77
  except Exception as e:
78
  print(f"Error instantiating agent: {e}")
79
  return f"Error initializing agent: {e}", None