Chris Alexiuk
commited on
Commit
·
944828c
1
Parent(s):
1778213
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,10 @@ def init():
|
|
74 |
pdf_data.append(document)
|
75 |
|
76 |
# Create a Chroma vector store
|
77 |
-
embeddings = OpenAIEmbeddings(
|
|
|
|
|
|
|
78 |
docsearch = Chroma.from_documents(pdf_data, embeddings)
|
79 |
|
80 |
# Create a chain that uses the Chroma vector store
|
|
|
74 |
pdf_data.append(document)
|
75 |
|
76 |
# Create a Chroma vector store
|
77 |
+
embeddings = OpenAIEmbeddings(
|
78 |
+
disallowed_special=(),
|
79 |
+
openai_api_key=user_env.get("OPENAI_API_KEY")
|
80 |
+
)
|
81 |
docsearch = Chroma.from_documents(pdf_data, embeddings)
|
82 |
|
83 |
# Create a chain that uses the Chroma vector store
|