Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def process_documents(files, chunk_size, chunk_overlap, embedding_model):
|
|
134 |
# Create vector store
|
135 |
try:
|
136 |
# Reset ChromaDB client to avoid tenant issues
|
137 |
-
client = chromadb.PersistentClient(path=
|
138 |
client.reset()
|
139 |
vector_store = Chroma.from_documents(
|
140 |
documents=doc_splits,
|
|
|
134 |
# Create vector store
|
135 |
try:
|
136 |
# Reset ChromaDB client to avoid tenant issues
|
137 |
+
client = chromadb.PersistentClient(path=PERSIST_DIRECTORY)
|
138 |
client.reset()
|
139 |
vector_store = Chroma.from_documents(
|
140 |
documents=doc_splits,
|