Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,9 +53,17 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
|
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
|
| 56 |
-
|
| 57 |
-
model
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
|
| 61 |
GradioUI(agent).launch()
|
|
|
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
|
| 56 |
+
agent = CodeAgent(
|
| 57 |
+
model=model,
|
| 58 |
+
tools=[final_answer], # add your tools here (don't remove final_answer)
|
| 59 |
+
max_steps=6,
|
| 60 |
+
verbosity_level=1,
|
| 61 |
+
grammar=None,
|
| 62 |
+
planning_interval=None,
|
| 63 |
+
name=None,
|
| 64 |
+
description=None,
|
| 65 |
+
prompt_templates=prompt_templates # Pass system prompt to CodeAgent
|
| 66 |
+
)
|
| 67 |
|
| 68 |
|
| 69 |
GradioUI(agent).launch()
|