Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
57 |
|
58 |
agent = CodeAgent(
|
59 |
model=model,
|
60 |
-
tools=[
|
61 |
max_steps=6,
|
62 |
verbosity_level=1,
|
63 |
grammar=None,
|
@@ -66,6 +66,7 @@ agent = CodeAgent(
|
|
66 |
description=None,
|
67 |
prompt_templates=prompt_templates
|
68 |
)
|
69 |
-
|
|
|
70 |
|
71 |
GradioUI(agent).launch()
|
|
|
57 |
|
58 |
agent = CodeAgent(
|
59 |
model=model,
|
60 |
+
tools=[duckduckgo_search, get_current_time_in_timezone,final_answer], ## add your tools here (don't remove final answer)
|
61 |
max_steps=6,
|
62 |
verbosity_level=1,
|
63 |
grammar=None,
|
|
|
66 |
description=None,
|
67 |
prompt_templates=prompt_templates
|
68 |
)
|
69 |
+
result = agent.run("Generate an image of a sunrise over mountains, then tell me the current time in Tokyo.")
|
70 |
+
print(result)
|
71 |
|
72 |
GradioUI(agent).launch()
|