Yuvalamitay commited on
Commit
5b751cb
·
verified ·
1 Parent(s): abaaeff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -97,8 +97,8 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
97
  top_chunks = []
98
 
99
  # Loop through the top indices and retrieve the corresponding text chunks
100
- for chunks in top_indices:
101
- top_chunks.append(chunks)
102
 
103
  # Return the list of most relevant chunks
104
  return top_chunks
 
97
  top_chunks = []
98
 
99
  # Loop through the top indices and retrieve the corresponding text chunks
100
+ for i in top_indices:
101
+ top_chunks.append(text_chunks[i])
102
 
103
  # Return the list of most relevant chunks
104
  return top_chunks