Cheselle commited on
Commit
a061d3a
·
verified ·
1 Parent(s): 966367c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -10,9 +10,11 @@ from dotenv import load_dotenv
10
 
11
  load_dotenv()
12
  import os
 
 
13
 
14
  api_key = os.getenv("OPENAI_API_KEY")
15
- client = AsyncOpenAI(api_key = api_key)
16
 
17
  # ChatOpenAI Templates
18
  system_template = """You are a helpful assistant who always speaks in a pleasant tone!
 
10
 
11
  load_dotenv()
12
  import os
13
+ from openai import OpenAI
14
+ from config import OPENAI_API_KEY
15
 
16
  api_key = os.getenv("OPENAI_API_KEY")
17
+ client = OpenAI(api_key = api_key)
18
 
19
  # ChatOpenAI Templates
20
  system_template = """You are a helpful assistant who always speaks in a pleasant tone!