semillero commited on
Commit
297db7c
1 Parent(s): 7564ede

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from langchain.embeddings.openai import OpenAIEmbeddings
5
  from langchain.chains import ConversationalRetrievalChain
6
  from langchain.chat_models import ChatOpenAI
7
 
8
- os.environ['OPENAI_API_KEY'] ="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"
9
 
10
  from langchain.document_loaders import DirectoryLoader
11
  pdf_loader = DirectoryLoader('archivos', glob="**/*.pdf")
 
5
  from langchain.chains import ConversationalRetrievalChain
6
  from langchain.chat_models import ChatOpenAI
7
 
8
+ OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
9
 
10
  from langchain.document_loaders import DirectoryLoader
11
  pdf_loader = DirectoryLoader('archivos', glob="**/*.pdf")