Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,16 +17,7 @@ from langchain_community.llms import OpenAI
|
|
17 |
#from langchain.vectorstores import FAISS
|
18 |
from langchain_community.vectorstores.faiss import FAISS
|
19 |
|
20 |
-
#export OPENAI_API_KEY='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'
|
21 |
-
|
22 |
-
# Set the OPENAI_API_KEY environment variable directly
|
23 |
-
#os.environ["OPENAI_API_KEY"] = ""
|
24 |
-
|
25 |
# embeddings = OpenAIEmbeddings()
|
26 |
-
# OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY)
|
27 |
-
|
28 |
-
# from pydantic.error_wrappers import ValidationError
|
29 |
-
# from openai import OpenAIEmbeddings
|
30 |
|
31 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
32 |
try:
|
|
|
17 |
#from langchain.vectorstores import FAISS
|
18 |
from langchain_community.vectorstores.faiss import FAISS
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
# embeddings = OpenAIEmbeddings()
|
|
|
|
|
|
|
|
|
21 |
|
22 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
23 |
try:
|