Skip to content

Commit

Permalink
load env
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrr committed Jun 28, 2024
1 parent f8e1ba0 commit 53160c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .aws/task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
],
"essential": true,
"environment": [],
"environmentFiles": [],
"environmentFiles": [
{
"value": "arn:aws:s3:::atlasenvironment/server.env",
"type": "s3"
}
],
"mountPoints": [],
"volumesFrom": [],
"ulimits": [],
Expand Down
2 changes: 2 additions & 0 deletions server/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
from datetime import datetime
from typing import Dict, List, Union
from openai import OpenAI
from dotenv import load_dotenv

load_dotenv()

client = OpenAI()

Expand Down

0 comments on commit 53160c9

Please sign in to comment.