Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,15 @@ from Gradio_UI import GradioUI
|
|
| 11 |
# Add DuckDuckGo Search tool instance
|
| 12 |
duck_search = DuckDuckGoSearchTool()
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
@tool
|
| 15 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 16 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
|
| 11 |
# Add DuckDuckGo Search tool instance
|
| 12 |
duck_search = DuckDuckGoSearchTool()
|
| 13 |
|
| 14 |
+
@tool
|
| 15 |
+
def multiplication_tool(arg1:int, arg2:int) -> str:
|
| 16 |
+
"""A tool that takes two integers and multiplies it
|
| 17 |
+
Args:
|
| 18 |
+
arg1: first integer
|
| 19 |
+
arg2: second integer
|
| 20 |
+
"""
|
| 21 |
+
return str(arg1*arg2)
|
| 22 |
+
|
| 23 |
@tool
|
| 24 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 25 |
"""A tool that fetches the current local time in a specified timezone.
|