Spaces:
Sleeping
Sleeping
Mikeplockhart
commited on
Commit
•
8b97f05
1
Parent(s):
a4370d3
Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,8 @@ def search_chroma(query:str):
|
|
50 |
results = client.query(
|
51 |
#query_embeddings=embedding_function([query]),
|
52 |
collection_name="food",
|
53 |
-
query_text=query
|
54 |
-
|
55 |
)
|
56 |
#print(results[0])
|
57 |
#print(results[0].QueryResponse.metadata)
|
|
|
50 |
results = client.query(
|
51 |
#query_embeddings=embedding_function([query]),
|
52 |
collection_name="food",
|
53 |
+
query_text=query,
|
54 |
+
limit=2
|
55 |
)
|
56 |
#print(results[0])
|
57 |
#print(results[0].QueryResponse.metadata)
|