JabrilJacobs commited on
Commit
6b02517
·
verified ·
1 Parent(s): 588968f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import requests
4
  import inspect
5
  import pandas as pd
6
  from smolagents import DuckDuckGoSearchTool
 
7
  from tools import get_hub_stats
8
  from langchain.tools import Tool
9
  from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
@@ -30,7 +31,7 @@ class NewAgent:
30
 
31
 
32
  # Initialize the web search tool
33
- search_tool = DuckDuckGoSearchTool()
34
  # Initialize the Hub stats tool
35
  hub_stats_tool = Tool(
36
  name="get_hub_stats",
 
4
  import inspect
5
  import pandas as pd
6
  from smolagents import DuckDuckGoSearchTool
7
+ from langchain_community.tools import DuckDuckGoSearchRun
8
  from tools import get_hub_stats
9
  from langchain.tools import Tool
10
  from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
 
31
 
32
 
33
  # Initialize the web search tool
34
+ search_tool = DuckDuckGoSearchRun()
35
  # Initialize the Hub stats tool
36
  hub_stats_tool = Tool(
37
  name="get_hub_stats",