ninte commited on
Commit
aac72ad
·
verified ·
1 Parent(s): 849c295

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -10,6 +10,7 @@ from Gradio_UI import GradioUI
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:
 
13
  """Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results.
14
 
15
  Args:
@@ -17,11 +18,7 @@ def web_search(query:str)-> str:
17
  description or search paramater(e.g. what is the capital town of Ghana)
18
 
19
  """
20
- try:
21
- search_tool = DuckDuckGoSearchTool(max_results=100000)
22
- return search_tool.forward(query)
23
- except Exception as e:
24
- return f"An error occurred while searching: {str(e)}"
25
 
26
  @tool
27
  def get_current_time_in_timezone(timezone: str) -> str:
 
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:
13
+
14
  """Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results.
15
 
16
  Args:
 
18
  description or search paramater(e.g. what is the capital town of Ghana)
19
 
20
  """
21
+ return None
 
 
 
 
22
 
23
  @tool
24
  def get_current_time_in_timezone(timezone: str) -> str: