Oyelami Oyewole A. commited on
Commit
7417062
·
verified ·
1 Parent(s): 6dc7bca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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 = yaml.safe_load(stream)
 
 
 
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,