Da-Rabbit-Hole commited on
Commit
86119dd
·
verified ·
1 Parent(s): 687468d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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:
@@ -26,7 +26,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
26
  return "What magic will you build ?"
27
 
28
  @tool
29
- def get_location_tool(ip: str): -> str
30
 
31
  """This is a tool that gets the exact location of a user including city, region, country, latitude, and longitude.
32
  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')
@@ -117,7 +117,7 @@ warmest_city = max(avg_temps, key=avg_temps.get)
117
  print(f"The warmest city is {warmest_city} with an average of {avg_temps[warmest_city]:.1f}°C")
118
 
119
  @tool
120
- def hotel_recommendation_tool(city: str,price: str): -> str
121
  """This is a hotel recommendation tool that web scrapes foursquare.com, and yelp.com for hotel ratings, user comments, and hotel information.
122
  Args:
123
  city: A string representing a valid city (e.g., 'Dubai, Singapore')
 
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:
 
26
  return "What magic will you build ?"
27
 
28
  @tool
29
+ def get_location_tool(ip: str): str
30
 
31
  """This is a tool that gets the exact location of a user including city, region, country, latitude, and longitude.
32
  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')
 
117
  print(f"The warmest city is {warmest_city} with an average of {avg_temps[warmest_city]:.1f}°C")
118
 
119
  @tool
120
+ def hotel_recommendation_tool(city: str,price: str): str
121
  """This is a hotel recommendation tool that web scrapes foursquare.com, and yelp.com for hotel ratings, user comments, and hotel information.
122
  Args:
123
  city: A string representing a valid city (e.g., 'Dubai, Singapore')