That1BrainCell commited on
Commit
1eea422
·
verified ·
1 Parent(s): 3516cae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -30,8 +30,11 @@ from search import *
30
 
31
 
32
  # Chroma Connections
33
- client = chromadb.PersistentClient(path="embeddings")
34
- collection = client.get_or_create_collection(name="data", metadata={"hnsw:space": "l2"})
 
 
 
35
 
36
 
37
 
 
30
 
31
 
32
  # Chroma Connections
33
+ try:
34
+ client = chromadb.PersistentClient(path="embeddings")
35
+ collection = client.get_or_create_collection(name="data", metadata={"hnsw:space": "l2"})
36
+ except:
37
+ pass
38
 
39
 
40