Oyelami Oyewole A. commited on
Commit
1d3d706
·
verified ·
1 Parent(s): 54a7e63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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
- "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,
 
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,