jacksontaylor commited on
Commit
8ac90b6
·
verified ·
1 Parent(s): d96ef12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,11 +10,11 @@ search_tool = DuckDuckGoSearchTool() # Initialize outside the function
10
  @tool
11
  def lookup_fact(query: str) -> str:
12
  """
13
- A tool to look up facts using DuckDuckGo search.
14
  Args:
15
- query: The search query to find the fact.
16
  Returns:
17
- The search result as a string, or an error message.
18
  """
19
  try:
20
  results = search_tool.use(query)
 
10
  @tool
11
  def lookup_fact(query: str) -> str:
12
  """
13
+ A tool to look up facts and information from the web using DuckDuckGo.
14
  Args:
15
+ query: The search query to use for finding information.
16
  Returns:
17
+ The top search result from DuckDuckGo, or a message indicating no results were found.
18
  """
19
  try:
20
  results = search_tool.use(query)