Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,9 @@ def time(text: str) -> str:
|
|
24 |
"""Returns current datetime. Use this for any questions related to knowing current date and time.
|
25 |
The input should always be an empty string, and this function will always return current datetime.
|
26 |
Any date and time mathematics should occur outside this function."""
|
27 |
-
|
|
|
|
|
28 |
|
29 |
def invoke(openai_api_key, prompt, agent_option):
|
30 |
if (openai_api_key == ""):
|
|
|
24 |
"""Returns current datetime. Use this for any questions related to knowing current date and time.
|
25 |
The input should always be an empty string, and this function will always return current datetime.
|
26 |
Any date and time mathematics should occur outside this function."""
|
27 |
+
dt = datetime.now()
|
28 |
+
dt_local = dt.astimezone()
|
29 |
+
return dt_local.strftime("%d/%m/%Y %H:%M:%S")
|
30 |
|
31 |
def invoke(openai_api_key, prompt, agent_option):
|
32 |
if (openai_api_key == ""):
|