Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,21 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
18 |
"""
|
19 |
return "What magic will you build ?"
|
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.
|
|
|
18 |
"""
|
19 |
return "What magic will you build ?"
|
20 |
|
21 |
+
|
22 |
+
|
23 |
+
@tool
|
24 |
+
def multiply(a: int, b: int) -> int:
|
25 |
+
"""
|
26 |
+
Multiply two integers.
|
27 |
+
Args:
|
28 |
+
a: the first number
|
29 |
+
b: the second number
|
30 |
+
|
31 |
+
"""
|
32 |
+
return a * b
|
33 |
+
|
34 |
+
print(calculator.to_string())
|
35 |
+
|
36 |
@tool
|
37 |
def get_current_time_in_timezone(timezone: str) -> str:
|
38 |
"""A tool that fetches the current local time in a specified timezone.
|