Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ try:
|
|
34 |
|
35 |
@st.cache_resource
|
36 |
def load_chromadb():
|
37 |
-
chroma_client = chromadb.
|
38 |
path='Data', settings=Settings(anonymized_telemetry=False))
|
39 |
collection = chroma_client.get_or_create_collection(name='images')
|
40 |
return chroma_client, collection
|
|
|
34 |
|
35 |
@st.cache_resource
|
36 |
def load_chromadb():
|
37 |
+
chroma_client = chromadb.PersistentClient(
|
38 |
path='Data', settings=Settings(anonymized_telemetry=False))
|
39 |
collection = chroma_client.get_or_create_collection(name='images')
|
40 |
return chroma_client, collection
|