Update app.py
Browse files
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.
|
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")
|