dygoo commited on
Commit
2ada372
·
verified ·
1 Parent(s): 242a91b

Update app.py

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