Spaces:
Sleeping
Sleeping
Update app.py
Browse filesFixed the error in custom tool
app.py
CHANGED
@@ -20,8 +20,8 @@ def my_custom_tool(arg1:str, arg2:int)-> str:
|
|
20 |
name = arg1
|
21 |
day = arg2
|
22 |
return f"Happy Birthday to my dear friend {name}, I wish on this day that is {day} is always on your mind :) "
|
23 |
-
except Exception as e:
|
24 |
-
return f"Error generating text"
|
25 |
@tool
|
26 |
def get_current_time_in_timezone(timezone: str) -> str:
|
27 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
20 |
name = arg1
|
21 |
day = arg2
|
22 |
return f"Happy Birthday to my dear friend {name}, I wish on this day that is {day} is always on your mind :) "
|
23 |
+
except Exception as e:
|
24 |
+
return f"Error generating text :{str(e)}"
|
25 |
@tool
|
26 |
def get_current_time_in_timezone(timezone: str) -> str:
|
27 |
"""A tool that fetches the current local time in a specified timezone.
|