ashish-001 commited on
Commit
28b7868
·
verified ·
1 Parent(s): ade9ea5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ try:
34
 
35
  @st.cache_resource
36
  def load_chromadb():
37
- chroma_client = chromadb.Client(
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