Spaces:
Runtime error
Runtime error
Miguel Martinez commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,6 +77,7 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
|
|
| 77 |
# Load prompt templates
|
| 78 |
with open("prompts.yaml", 'r') as stream:
|
| 79 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 80 |
|
| 81 |
# Build the agent
|
| 82 |
agent = CodeAgent(
|
|
|
|
| 77 |
# Load prompt templates
|
| 78 |
with open("prompts.yaml", 'r') as stream:
|
| 79 |
prompt_templates = yaml.safe_load(stream)
|
| 80 |
+
prompt_templates["system_prompt"] = prompt_templates["system_prompt"].replace("{{TODAY}}", TODAY)
|
| 81 |
|
| 82 |
# Build the agent
|
| 83 |
agent = CodeAgent(
|