Spaces:
Runtime error
Runtime error
Update index.py
Browse files
index.py
CHANGED
|
@@ -5,7 +5,7 @@ from langchain.chains import RetrievalQA
|
|
| 5 |
from langchain.chat_models import ChatOpenAI
|
| 6 |
import os
|
| 7 |
os.environ["OPENAI_API_KEY"]
|
| 8 |
-
|
| 9 |
loader = PyPDFLoader("2023_GPT4All_Technical_Report.pdf")
|
| 10 |
pages = loader.load_and_split()
|
| 11 |
# print(len(pages), pages)
|
|
|
|
| 5 |
from langchain.chat_models import ChatOpenAI
|
| 6 |
import os
|
| 7 |
os.environ["OPENAI_API_KEY"]
|
| 8 |
+
print(os.environ["OPENAI_API_KEY"])
|
| 9 |
loader = PyPDFLoader("2023_GPT4All_Technical_Report.pdf")
|
| 10 |
pages = loader.load_and_split()
|
| 11 |
# print(len(pages), pages)
|