NicolasGaudemet commited on
Commit
1e8280a
1 Parent(s): 8fd452b

Update document_questioner_app.py

Browse files
Files changed (1) hide show
  1. document_questioner_app.py +1 -1
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
- openai_api_key = os.environ['OpenaiKey']
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()