Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def my_custom_tool(arg1:int, arg2:int)-> int: #it's import to specify the return
|
|
| 19 |
|
| 20 |
return arg1*arg2
|
| 21 |
except Exception as ee:
|
| 22 |
-
return f"Error fetching result {str(ee)}"
|
| 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.
|
|
|
|
| 19 |
|
| 20 |
return arg1*arg2
|
| 21 |
except Exception as ee:
|
| 22 |
+
return f"Error fetching result '{arg1}': {str(ee)}"
|
| 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.
|