Albannach58 commited on
Commit
c82ead4
·
verified ·
1 Parent(s): 0e54433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -52,15 +52,16 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
52
 
53
  # 1. Instantiate Agent ( modify this part to create your agent)
54
  try:
 
55
  # agent = BasicAgent()
56
  # tools=tools, model=model, additional_authorized_imports=["requests", "bs4"], max_steps=20
57
- agent = CodeAgent(
58
- model=model,
59
- tools=tools,
60
- max_steps=10, # Set the maximum number of steps here
61
- additional_authorized_imports=["requests", "bs4"],
62
- verbosity_level=2
63
- )
64
  except Exception as e:
65
  print(f"Error instantiating agent: {e}")
66
  return f"Error initializing agent: {e}", None
 
52
 
53
  # 1. Instantiate Agent ( modify this part to create your agent)
54
  try:
55
+ agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=InferenceClientModel())
56
  # agent = BasicAgent()
57
  # tools=tools, model=model, additional_authorized_imports=["requests", "bs4"], max_steps=20
58
+ # agent = CodeAgent(
59
+ # model=model,
60
+ # tools=tools,
61
+ # max_steps=10, # Set the maximum number of steps here
62
+ # additional_authorized_imports=["requests", "bs4"],
63
+ # verbosity_level=2
64
+ # )
65
  except Exception as e:
66
  print(f"Error instantiating agent: {e}")
67
  return f"Error initializing agent: {e}", None