dygoo commited on
Commit
ebfd0a7
·
verified ·
1 Parent(s): e6d375c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,6 +7,7 @@ import smolagents
7
  from smolagents import DuckDuckGoSearchTool, VisitWebpageTool
8
 
9
  search_tool = DuckDuckGoSearchTool()
 
10
 
11
  # (Keep Constants as is)
12
  # --- Constants ---
@@ -48,7 +49,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
48
 
49
  # 1. Instantiate Agent ( modify this part to create your agent)
50
  try:
51
- agent = BasicAgent(model='Qwen/Qwen2.5-Coder-32B-Instruct', tools=[search_tool])
52
  except Exception as e:
53
  print(f"Error instantiating agent: {e}")
54
  return f"Error initializing agent: {e}", None
 
7
  from smolagents import DuckDuckGoSearchTool, VisitWebpageTool
8
 
9
  search_tool = DuckDuckGoSearchTool()
10
+ visit_webpage = VisitWebpageTool()
11
 
12
  # (Keep Constants as is)
13
  # --- Constants ---
 
49
 
50
  # 1. Instantiate Agent ( modify this part to create your agent)
51
  try:
52
+ agent = BasicAgent(model='Qwen/Qwen2.5-Coder-32B-Instruct', tools=[search_tool, visit_webpage])
53
  except Exception as e:
54
  print(f"Error instantiating agent: {e}")
55
  return f"Error initializing agent: {e}", None