Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,11 @@ from search import *
|
|
30 |
|
31 |
|
32 |
# Chroma Connections
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
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 |
|