Spaces:
Runtime error
Runtime error
Oyelami Oyewole A.
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,12 @@ custom_role_conversions=None,
|
|
51 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
52 |
|
53 |
with open("prompts.yaml", 'r') as stream:
|
54 |
-
prompt_templates =
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
58 |
|
59 |
agent = CodeAgent(
|
60 |
model=model,
|
|
|
51 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
52 |
|
53 |
with open("prompts.yaml", 'r') as stream:
|
54 |
+
prompt_templates = yaml.safe_load(stream)
|
55 |
+
|
56 |
+
|
57 |
+
#{
|
58 |
+
#"final_answer": "The final answer is:\n{answer}",
|
59 |
+
# # Add other templates if you're overriding more functionality}
|
60 |
|
61 |
agent = CodeAgent(
|
62 |
model=model,
|