bmaphis commited on
Commit
df1e0da
·
verified ·
1 Parent(s): 121b282

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -9,12 +9,17 @@ from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
- def DuckDuckGoSearchTool(query_string:str,max_results:int) -> str: #it's import to specify the return type
13
- #Keep this format for the description / args / args description but feel free to modify the tool
14
- """A tool that does nothing yet
 
 
15
  Args:
16
- arg1: the first argument
17
- arg2: the second argument
 
 
 
18
  """
19
  try:
20
  results = DuckDuckGoSearchTool().text(
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def get_search_results(query_string:str,max_results:int) -> str:
13
+ def DuckDuckGoSearchTool(query_string: str, max_results: int) -> str:
14
+ """
15
+ Search DuckDuckGo and return text results.
16
+
17
  Args:
18
+ query_string: The search query to send to DuckDuckGo.
19
+ max_results: The maximum number of search results to return.
20
+
21
+ Returns:
22
+ A text representation of the search results.
23
  """
24
  try:
25
  results = DuckDuckGoSearchTool().text(