Spaces:
Running
Running
mobixconsulting
commited on
Commit
•
8c1fc61
1
Parent(s):
cdbd21c
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from langchain.chat_models import ChatOpenAI
|
|
8 |
os.environ['OPENAI_API_KEY'] ="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"
|
9 |
|
10 |
from langchain.document_loaders import DirectoryLoader
|
11 |
-
pdf_loader = DirectoryLoader('
|
12 |
|
13 |
#Crear loader
|
14 |
loaders = [pdf_loader]
|
|
|
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")
|
12 |
|
13 |
#Crear loader
|
14 |
loaders = [pdf_loader]
|