Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,16 +55,19 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 55 |
|
| 56 |
agent = CodeAgent(
|
| 57 |
model=model,
|
| 58 |
-
tools=[
|
|
|
|
|
|
|
|
|
|
| 59 |
additional_authorized_imports=["datetime"],
|
| 60 |
max_steps=6,
|
| 61 |
verbosity_level=1,
|
| 62 |
grammar=None,
|
| 63 |
planning_interval=None,
|
| 64 |
-
name=
|
| 65 |
-
description=
|
| 66 |
prompt_templates=prompt_templates
|
| 67 |
)
|
| 68 |
|
| 69 |
-
|
| 70 |
GradioUI(agent).launch()
|
|
|
|
| 55 |
|
| 56 |
agent = CodeAgent(
|
| 57 |
model=model,
|
| 58 |
+
tools=[
|
| 59 |
+
final_answer,
|
| 60 |
+
get_current_time_in_timezone,
|
| 61 |
+
image_generation_tool], ## add your tools here (don't remove final answer)
|
| 62 |
additional_authorized_imports=["datetime"],
|
| 63 |
max_steps=6,
|
| 64 |
verbosity_level=1,
|
| 65 |
grammar=None,
|
| 66 |
planning_interval=None,
|
| 67 |
+
name="MyFirstAgent",
|
| 68 |
+
description="Can create an image or give you weather forecast.",
|
| 69 |
prompt_templates=prompt_templates
|
| 70 |
)
|
| 71 |
|
| 72 |
+
#agent.run("Draw me a cat drinking whiskey, cartoon style.")
|
| 73 |
GradioUI(agent).launch()
|