Ebraheem commited on
Commit
2b58583
·
verified ·
1 Parent(s): 93adeb6

fix prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
46
  with open("prompts.yaml", 'r') as stream:
47
  prompt_templates = yaml.safe_load(stream)
48
 
49
- print(prompt_templates)
50
  agent = CodeAgent(
51
  model=model,
52
  tools=[final_answer, get_current_time_in_timezone, web_search,
@@ -57,7 +57,7 @@ agent = CodeAgent(
57
  planning_interval=None,
58
  name=None,
59
  description=None,
60
- prompt_templates=prompt_templates + vwb.helium_instructions,
61
  )
62
  agent.python_executor("from helium import *")
63
 
 
46
  with open("prompts.yaml", 'r') as stream:
47
  prompt_templates = yaml.safe_load(stream)
48
 
49
+ prompt_templates["system_prompt"] += "\n" + vwb.helium_instructions
50
  agent = CodeAgent(
51
  model=model,
52
  tools=[final_answer, get_current_time_in_timezone, web_search,
 
57
  planning_interval=None,
58
  name=None,
59
  description=None,
60
+ prompt_templates=prompt_templates,
61
  )
62
  agent.python_executor("from helium import *")
63