Spaces:
Sleeping
Sleeping
update search_interface function
Browse files
app.py
CHANGED
@@ -31,7 +31,8 @@ def semantic_search(query, model, embeddings, nbrs):
|
|
31 |
def search_interface(query):
|
32 |
similar_sentences = semantic_search(query, model, embeddings, nbrs)
|
33 |
sentences = [sentence for sentence, distance in similar_sentences]
|
34 |
-
|
|
|
35 |
|
36 |
pd.set_option('display.max_colwidth', None)
|
37 |
|
|
|
31 |
def search_interface(query):
|
32 |
similar_sentences = semantic_search(query, model, embeddings, nbrs)
|
33 |
sentences = [sentence for sentence, distance in similar_sentences]
|
34 |
+
formatted_output = '\n\n'.join(sentences) # Join sentences with double newlines for separation
|
35 |
+
return formatted_output
|
36 |
|
37 |
pd.set_option('display.max_colwidth', None)
|
38 |
|