Update app.py
#423
by
Digvijay760
- opened
app.py
CHANGED
@@ -4,6 +4,7 @@ import requests
|
|
4 |
import pytz
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
|
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
@@ -16,7 +17,9 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
16 |
arg1: the first argument
|
17 |
arg2: the second argument
|
18 |
"""
|
19 |
-
|
|
|
|
|
20 |
|
21 |
@tool
|
22 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
4 |
import pytz
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
+
from datetime import datetime
|
8 |
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
|
|
17 |
arg1: the first argument
|
18 |
arg2: the second argument
|
19 |
"""
|
20 |
+
current_datetime = datetime.now()
|
21 |
+
|
22 |
+
return (f"What magic will you build on {current_datetime.date()}?")
|
23 |
|
24 |
@tool
|
25 |
def get_current_time_in_timezone(timezone: str) -> str:
|