Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,9 @@ from langchain.embeddings.openai import OpenAIEmbeddings
|
|
15 |
import os
|
16 |
|
17 |
|
18 |
-
openai
|
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
|