jcleee commited on
Commit
9fd47eb
·
verified ·
1 Parent(s): f0182ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -9,14 +9,15 @@ 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 web_search(query:str)-> str: #it's import to specify the return type
13
  """Allows search through DuckDuckGo
14
  Args:
15
  query: what you want to search
16
  """
17
  search_tool = DuckDuckGoSearchTool()
18
- results = search_tool(query)
19
- return results
 
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def web_search(query:str): #it's import to specify the return type
13
  """Allows search through DuckDuckGo
14
  Args:
15
  query: what you want to search
16
  """
17
  search_tool = DuckDuckGoSearchTool()
18
+ results = search_tool(query)
19
+ for result in results:
20
+ print(result)
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str: