Spaces:
Sleeping
Sleeping
Mikeplockhart
commited on
Update utils.py
Browse filesChroma variable name
utils.py
CHANGED
@@ -4,7 +4,7 @@ import json
|
|
4 |
|
5 |
def chroma_client_setup():
|
6 |
chroma_client = chromadb.Client()
|
7 |
-
collection =
|
8 |
name="food_collection",
|
9 |
metadata={"hnsw:space": "cosine"} # l2 is the default
|
10 |
)
|
|
|
4 |
|
5 |
def chroma_client_setup():
|
6 |
chroma_client = chromadb.Client()
|
7 |
+
collection = chroma_client.create_collection(
|
8 |
name="food_collection",
|
9 |
metadata={"hnsw:space": "cosine"} # l2 is the default
|
10 |
)
|