Da-Rabbit-Hole commited on
Commit
4ce34b2
·
verified ·
1 Parent(s): 2d4f9c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,7 +16,7 @@ from Gradio_UI import GradioUI
16
 
17
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
18
  @tool
19
- def my_custom_tool(arg1:str, arg2:int) str #it's import to specify the return type
20
  #Keep this format for the description / args / args description but feel free to modify the tool
21
  """A tool that does nothing yet
22
  Args:
@@ -65,7 +65,7 @@ print(location)
65
 
66
 
67
  @tool
68
- def get_current_time_in_timezone(timezone: str) str:
69
  """A tool that fetches the current local time in a specified timezone.
70
  Args:
71
  timezone: A string representing a valid timezone (e.g., 'America/New_York')
@@ -236,7 +236,7 @@ def get():
236
  return
237
 
238
  @tool
239
- CustomDuckDuckGoSearchTool(DuckDuckGoSearchTool: query):
240
  """
241
  name = "web_search"
242
  description = "Performs a web search for a query and returns a list of the top search results formatted as markdown with page titles and urls."
 
16
 
17
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
18
  @tool
19
+ def my_custom_tool(arg1:str, arg2:int): str #it's import to specify the return type
20
  #Keep this format for the description / args / args description but feel free to modify the tool
21
  """A tool that does nothing yet
22
  Args:
 
65
 
66
 
67
  @tool
68
+ def get_current_time_in_timezone(timezone: str): str
69
  """A tool that fetches the current local time in a specified timezone.
70
  Args:
71
  timezone: A string representing a valid timezone (e.g., 'America/New_York')
 
236
  return
237
 
238
  @tool
239
+ CustomDuckDuckGoSearchTool(DuckDuckGoSearchTool: query): query
240
  """
241
  name = "web_search"
242
  description = "Performs a web search for a query and returns a list of the top search results formatted as markdown with page titles and urls."