Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,10 @@ def random_tool(arg1:str)-> str: #it's import to specify the return type
|
|
| 26 |
arg1: the first argument
|
| 27 |
arg2: the second argument
|
| 28 |
"""
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
@tool
|
| 32 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 26 |
arg1: the first argument
|
| 27 |
arg2: the second argument
|
| 28 |
"""
|
| 29 |
+
if isinstance(arg1, list):
|
| 30 |
+
return f"The Sum of the list is {sum(arg1)}"
|
| 31 |
+
|
| 32 |
+
return f"There is no magic there, just a bugy program?"
|
| 33 |
|
| 34 |
@tool
|
| 35 |
def get_current_time_in_timezone(timezone: str) -> str:
|