Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -312,7 +312,7 @@ def query_embeddings(query_embedding, embeddings_data=None, n_results=5):
|
|
312 |
from sklearn.metrics.pairwise import cosine_similarity
|
313 |
import numpy as np
|
314 |
|
315 |
-
def query_recipes_embeddings(query_embedding: np.ndarray, n_results
|
316 |
"""
|
317 |
Query the recipes embeddings to find the most similar recipes based on cosine similarity.
|
318 |
|
|
|
312 |
from sklearn.metrics.pairwise import cosine_similarity
|
313 |
import numpy as np
|
314 |
|
315 |
+
def query_recipes_embeddings(query_embedding: np.ndarray, n_results = 5):
|
316 |
"""
|
317 |
Query the recipes embeddings to find the most similar recipes based on cosine similarity.
|
318 |
|