Spaces:
Sleeping
Sleeping
fix prompt
Browse files
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 |
-
|
| 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
|
| 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 |
|