NicolasGaudemet
commited on
Commit
•
1e8280a
1
Parent(s):
8fd452b
Update document_questioner_app.py
Browse files
document_questioner_app.py
CHANGED
@@ -20,7 +20,7 @@ def question_document(Document, Question):
|
|
20 |
docs = loader.load()
|
21 |
|
22 |
# Set Open AI Key
|
23 |
-
|
24 |
|
25 |
# Create embeddings
|
26 |
embeddings = OpenAIEmbeddings()
|
|
|
20 |
docs = loader.load()
|
21 |
|
22 |
# Set Open AI Key
|
23 |
+
os.environ["OPENAI_API_KEY"] = os.environ['OpenaiKey']
|
24 |
|
25 |
# Create embeddings
|
26 |
embeddings = OpenAIEmbeddings()
|