Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,13 +25,13 @@ from Gradio_UI import GradioUI
|
|
| 25 |
# # return
|
| 26 |
|
| 27 |
@tool
|
| 28 |
-
def get_current_time_in_timezone(timezone: str):
|
| 29 |
|
| 30 |
"""A tool that fetches the current local time in a specified timezone.
|
| 31 |
Args:
|
| 32 |
timezone: A string representing a valid timezone (e.g., 'America/New_York')
|
| 33 |
|
| 34 |
-
Returns:
|
| 35 |
The current local time in the string format %Y-%m-%d %H:%M:%S (e.g., '2015-09-14 04:20:00')
|
| 36 |
"""
|
| 37 |
try:
|
|
|
|
| 25 |
# # return
|
| 26 |
|
| 27 |
@tool
|
| 28 |
+
def get_current_time_in_timezone(timezone: str): str
|
| 29 |
|
| 30 |
"""A tool that fetches the current local time in a specified timezone.
|
| 31 |
Args:
|
| 32 |
timezone: A string representing a valid timezone (e.g., 'America/New_York')
|
| 33 |
|
| 34 |
+
Returns:
|
| 35 |
The current local time in the string format %Y-%m-%d %H:%M:%S (e.g., '2015-09-14 04:20:00')
|
| 36 |
"""
|
| 37 |
try:
|