Spaces:
Sleeping
Sleeping
Update app.py
Browse filesOverhauled for new ChromaDB version
app.py
CHANGED
@@ -5,8 +5,8 @@ from chromadb.config import Settings
|
|
5 |
|
6 |
from chromadb import PersistentClient
|
7 |
|
8 |
-
|
9 |
-
|
10 |
|
11 |
# Load your collection
|
12 |
collection = client_db.get_collection("my_collection")
|
|
|
5 |
|
6 |
from chromadb import PersistentClient
|
7 |
|
8 |
+
# Set the correct path to chroma.sqlite3 (according to the repo structure)
|
9 |
+
client_db = PersistentClient(path="./chromadb_directory/chromadb_file/chroma.sqlite3")
|
10 |
|
11 |
# Load your collection
|
12 |
collection = client_db.get_collection("my_collection")
|