Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,6 @@ 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 add_two_integers(a:int, b:int)-> int: #it's import to specify the return type
|
| 13 |
-
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that takes two integers as input and returns the sum of the two integers
|
| 15 |
Args:
|
| 16 |
a: the first argument
|
|
@@ -18,6 +17,16 @@ def add_two_integers(a:int, b:int)-> int: #it's import to specify the return typ
|
|
| 18 |
"""
|
| 19 |
return a+b
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
@tool
|
| 22 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 23 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
def add_two_integers(a:int, b:int)-> int: #it's import to specify the return type
|
|
|
|
| 13 |
"""A tool that takes two integers as input and returns the sum of the two integers
|
| 14 |
Args:
|
| 15 |
a: the first argument
|
|
|
|
| 17 |
"""
|
| 18 |
return a+b
|
| 19 |
|
| 20 |
+
|
| 21 |
+
@tool
|
| 22 |
+
# def get_current_weather(location: str) -> str:
|
| 23 |
+
# """A tool that fetches the current weather in the specified timezone.
|
| 24 |
+
# Args:
|
| 25 |
+
# location: a string representing a valid location (eg., 'Paris')
|
| 26 |
+
# """
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
@tool
|
| 31 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 32 |
"""A tool that fetches the current local time in a specified timezone.
|