Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ try:
|
|
| 28 |
|
| 29 |
@st.cache_resource
|
| 30 |
def load_chromadb():
|
| 31 |
-
chroma_client = chromadb.
|
| 32 |
path='data', settings=Settings(anonymized_telemetry=False))
|
| 33 |
collection = chroma_client.get_collection(name='images')
|
| 34 |
return collection
|
|
|
|
| 28 |
|
| 29 |
@st.cache_resource
|
| 30 |
def load_chromadb():
|
| 31 |
+
chroma_client = chromadb.PersistentClient(
|
| 32 |
path='data', settings=Settings(anonymized_telemetry=False))
|
| 33 |
collection = chroma_client.get_collection(name='images')
|
| 34 |
return collection
|