MoudClam commited on
Commit
5e2393c
·
verified ·
1 Parent(s): 3101bdb

Update tools/web_search.py

Browse files
Files changed (1) hide show
  1. tools/web_search.py +1 -2
tools/web_search.py CHANGED
@@ -1,6 +1,5 @@
1
  from typing import Any, Optional
2
  from smolagents.tools import Tool
3
- import ddgs
4
 
5
  class DuckDuckGoSearchTool(Tool):
6
  name = "web_search"
@@ -15,7 +14,7 @@ class DuckDuckGoSearchTool(Tool):
15
  from ddgs import DDGS
16
  except ImportError as e:
17
  raise ImportError(
18
- "You must install package `duckduckgo_search` to run this tool: for instance run `pip install duckduckgo-search`."
19
  ) from e
20
  self.ddgs = DDGS(**kwargs)
21
 
 
1
  from typing import Any, Optional
2
  from smolagents.tools import Tool
 
3
 
4
  class DuckDuckGoSearchTool(Tool):
5
  name = "web_search"
 
14
  from ddgs import DDGS
15
  except ImportError as e:
16
  raise ImportError(
17
+ "You must install package `ddgs` to run this tool: for instance run `pip install ddgs`."
18
  ) from e
19
  self.ddgs = DDGS(**kwargs)
20