Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ from Gradio_UI import GradioUI
|
|
18 |
|
19 |
|
20 |
@tool
|
21 |
-
def
|
22 |
|
23 |
"""A tool that fetches the current local time in a specified timezone.
|
24 |
Args:
|
@@ -78,7 +78,7 @@ combined_prompts = {**prompt_templates, **content_prompts}
|
|
78 |
|
79 |
agent = CodeAgent(
|
80 |
model=model,
|
81 |
-
tools=[final_answer, polite_guard, web_search,
|
82 |
max_steps=6,
|
83 |
verbosity_level=1,
|
84 |
grammar=None,
|
|
|
18 |
|
19 |
|
20 |
@tool
|
21 |
+
def get_the_current_time_in_timezone(timezone: str) -> str:
|
22 |
|
23 |
"""A tool that fetches the current local time in a specified timezone.
|
24 |
Args:
|
|
|
78 |
|
79 |
agent = CodeAgent(
|
80 |
model=model,
|
81 |
+
tools=[final_answer, polite_guard, web_search, get_the_current_time_in_timezone ], ## add your tools here (don't remove final answer)
|
82 |
max_steps=6,
|
83 |
verbosity_level=1,
|
84 |
grammar=None,
|