Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,8 +59,10 @@ custom_role_conversions=None,
|
|
| 59 |
# Import tool from Hub
|
| 60 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 61 |
|
|
|
|
| 62 |
with open("prompts.yaml", 'r') as stream:
|
| 63 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 64 |
|
| 65 |
agent = CodeAgent(
|
| 66 |
model=model,
|
|
|
|
| 59 |
# Import tool from Hub
|
| 60 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 61 |
|
| 62 |
+
import yaml
|
| 63 |
with open("prompts.yaml", 'r') as stream:
|
| 64 |
prompt_templates = yaml.safe_load(stream)
|
| 65 |
+
|
| 66 |
|
| 67 |
agent = CodeAgent(
|
| 68 |
model=model,
|