mhdhrubo commited on
Commit
da490a8
1 Parent(s): 7008b1f

update search_interface function

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return sentences
 
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