abelluque commited on
Commit
39ec6cd
·
1 Parent(s): ab2a5d5

fix tool description

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -10,7 +10,16 @@ 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 my_custom_tool(location: str, utc_offset: int) -> str:
13
- """Generates relevant information about a given location's timezone, including possible timezones and major cities."""
 
 
 
 
 
 
 
 
 
14
  try:
15
  # Determine possible timezone based on UTC offset
16
  all_timezones = pytz.all_timezones
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
  def my_custom_tool(location: str, utc_offset: int) -> str:
13
+ """
14
+ Generates relevant information about a given location's timezone, including possible timezones and major cities.
15
+
16
+ Args:
17
+ location (str): The name of the location to look up.
18
+ utc_offset (int): The UTC offset in hours to search for matching timezones.
19
+
20
+ Returns:
21
+ str: A message listing possible timezones and major cities for the given UTC offset.
22
+ """
23
  try:
24
  # Determine possible timezone based on UTC offset
25
  all_timezones = pytz.all_timezones