Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,15 +9,13 @@ from Gradio_UI import GradioUI
|
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
-
def get_time_with_context(timezone: str)-> str: #it's import to specify the return type
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
-
"""fetches the current local time in a specified timezone and provides a contextual message.
|
15 |
-
Args:
|
16 |
-
timezone (str): A valid timezone string (e.g., 'America/New_York', 'Asia/Tokyo').
|
17 |
-
|
18 |
-
Parameters:
|
19 |
-
timezone (str): The name of the timezone. Example: 'America/New_York', 'Asia/Tokyo'.
|
20 |
|
|
|
|
|
|
|
21 |
Returns:
|
22 |
str: A string with the current time and contextual greeting message.
|
23 |
"""
|
|
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
+
def get_time_with_context(timezone: str) -> str: #it's import to specify the return type
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
+
"""fetches the current local time in a specified timezone and provides a contextual message.
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
Arguments:
|
17 |
+
timezone: (str): A valid timezone string (e.g., 'America/New_York', 'Asia/Tokyo').
|
18 |
+
|
19 |
Returns:
|
20 |
str: A string with the current time and contextual greeting message.
|
21 |
"""
|