Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -176,7 +176,7 @@ async def search_ebikes(description: str):
|
|
176 |
"""
|
177 |
try:
|
178 |
# Create embedding for the query
|
179 |
-
query_embedding = encoder.encode(
|
180 |
|
181 |
# Query Pinecone
|
182 |
results = pinecone_index.query(
|
|
|
176 |
"""
|
177 |
try:
|
178 |
# Create embedding for the query
|
179 |
+
query_embedding = encoder.encode(description)[0]
|
180 |
|
181 |
# Query Pinecone
|
182 |
results = pinecone_index.query(
|