Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,14 +44,14 @@ custom_role_conversions=None,
|
|
| 44 |
|
| 45 |
|
| 46 |
# Import tool from Hub
|
| 47 |
-
image_generation_tool = load_tool("TencentARC/PhotoMaker", trust_remote_code=True)
|
| 48 |
|
| 49 |
with open("prompts.yaml", 'r') as stream:
|
| 50 |
prompt_templates = yaml.safe_load(stream)
|
| 51 |
|
| 52 |
agent = CodeAgent(
|
| 53 |
model=model,
|
| 54 |
-
tools=[
|
| 55 |
max_steps=6,
|
| 56 |
verbosity_level=1,
|
| 57 |
grammar=None,
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
# Import tool from Hub
|
| 47 |
+
#image_generation_tool = load_tool("TencentARC/PhotoMaker", trust_remote_code=True)
|
| 48 |
|
| 49 |
with open("prompts.yaml", 'r') as stream:
|
| 50 |
prompt_templates = yaml.safe_load(stream)
|
| 51 |
|
| 52 |
agent = CodeAgent(
|
| 53 |
model=model,
|
| 54 |
+
tools=[get_current_time_in_timezone,final_answer,DuckDuckGoSearchTool()], ## add or remove tools here
|
| 55 |
max_steps=6,
|
| 56 |
verbosity_level=1,
|
| 57 |
grammar=None,
|