Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def display_df_as_table(model,top_k,score='score'):
|
|
30 |
return df
|
31 |
|
32 |
#function for generating similarity of query and netflix shows
|
33 |
-
def semantic_search(query,embeddings,top_k
|
34 |
'''Encode query and check similarity with embeddings'''
|
35 |
|
36 |
question_embedding = model.encode(query, convert_to_tensor=True).cpu()
|
|
|
30 |
return df
|
31 |
|
32 |
#function for generating similarity of query and netflix shows
|
33 |
+
def semantic_search(query,embeddings,top_k):
|
34 |
'''Encode query and check similarity with embeddings'''
|
35 |
|
36 |
question_embedding = model.encode(query, convert_to_tensor=True).cpu()
|