Spaces:
Build error
Build error
Commit ·
eab553d
1
Parent(s): 8318d74
add openai req
Browse files
app.py
CHANGED
|
@@ -21,8 +21,8 @@ import yaml
|
|
| 21 |
import os
|
| 22 |
from dotenv import load_dotenv
|
| 23 |
|
| 24 |
-
with open("prompts.yaml", 'r') as stream:
|
| 25 |
-
|
| 26 |
# 1) load your .env (skip if you set it in the shell)
|
| 27 |
load_dotenv()
|
| 28 |
|
|
@@ -50,7 +50,7 @@ OpenAIAgent = CodeAgent(
|
|
| 50 |
planning_interval=None,
|
| 51 |
name=None,
|
| 52 |
description=None,
|
| 53 |
-
prompt_templates=
|
| 54 |
)
|
| 55 |
# you can allow extra imports if needed:
|
| 56 |
# additional_authorized_imports=["requests", "bs4"],
|
|
|
|
| 21 |
import os
|
| 22 |
from dotenv import load_dotenv
|
| 23 |
|
| 24 |
+
# with open("prompts.yaml", 'r') as stream:
|
| 25 |
+
# prompt_templates = yaml.safe_load(stream)
|
| 26 |
# 1) load your .env (skip if you set it in the shell)
|
| 27 |
load_dotenv()
|
| 28 |
|
|
|
|
| 50 |
planning_interval=None,
|
| 51 |
name=None,
|
| 52 |
description=None,
|
| 53 |
+
prompt_templates=None
|
| 54 |
)
|
| 55 |
# you can allow extra imports if needed:
|
| 56 |
# additional_authorized_imports=["requests", "bs4"],
|