Spaces:
Sleeping
Sleeping
Update app.py
Browse filesAgain fixed the indentation
app.py
CHANGED
|
@@ -19,9 +19,9 @@ def my_custom_tool(arg1:str, arg2:int)-> str:
|
|
| 19 |
try:
|
| 20 |
name = arg1
|
| 21 |
day = arg2
|
| 22 |
-
|
| 23 |
except Exception as e:
|
| 24 |
-
|
| 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.
|
|
|
|
| 19 |
try:
|
| 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.
|