annas4421 commited on
Commit
e02adde
·
verified ·
1 Parent(s): a2715fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -15,8 +15,9 @@ from langchain.embeddings.openai import OpenAIEmbeddings
15
  import os
16
 
17
 
18
- openai.api_key = os.getenv["OPENAI_API_KEY"]
19
-
 
20
 
21
 
22
  # creating custom template to guide llm model
 
15
  import os
16
 
17
 
18
+ from openai import OpenAI
19
+ api_key = os.getenv("OPENAI_API_KEY")
20
+ client = OpenAI(api_key=api_key)
21
 
22
 
23
  # creating custom template to guide llm model