riyamalshe commited on
Commit
cf5db68
·
verified ·
1 Parent(s): 5e6dc47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
91
 
92
  # Loop through the top indices and retrieve the corresponding text chunks
93
  for i in top_indices:
94
- top_chunks.append(cleaned_chunks[i])
95
 
96
  # Return the list of most relevant chunks
97
  return top_chunks
 
91
 
92
  # Loop through the top indices and retrieve the corresponding text chunks
93
  for i in top_indices:
94
+ top_chunks.append(text_chunks[i])
95
 
96
  # Return the list of most relevant chunks
97
  return top_chunks