ritikaaA commited on
Commit
c48462e
·
verified ·
1 Parent(s): 9ac5999

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -79,7 +79,6 @@ def preprocess_text(text):
79
  for chunk in chunks:
80
  stripped_chunk = chunk.strip()
81
  cleaned_chunks.append(stripped_chunk)
82
- print(cleaned_chunks)
83
  print(len(cleaned_chunks))
84
  return cleaned_chunks
85
 
@@ -142,7 +141,7 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
142
 
143
  # Loop through the top indices and retrieve the corresponding text chunks
144
  for i in top_indices:
145
- relevant_info = brand_chunks_chunks[i]
146
  top_chunks.append(relevant_info)
147
 
148
 
 
79
  for chunk in chunks:
80
  stripped_chunk = chunk.strip()
81
  cleaned_chunks.append(stripped_chunk)
 
82
  print(len(cleaned_chunks))
83
  return cleaned_chunks
84
 
 
141
 
142
  # Loop through the top indices and retrieve the corresponding text chunks
143
  for i in top_indices:
144
+ relevant_info = brand_chunks[i]
145
  top_chunks.append(relevant_info)
146
 
147