Spaces:
Runtime error
Runtime error
Oyelami Oyewole A.
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,10 @@ 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 |
agent = CodeAgent(
|
| 57 |
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 = {
|
| 55 |
+
"final_answer": "The final answer is:\n{answer}",
|
| 56 |
+
# Add other templates if you're overriding more functionality
|
| 57 |
+
}
|
| 58 |
|
| 59 |
agent = CodeAgent(
|
| 60 |
model=model,
|