manu commited on
Commit
1b89ce2
·
verified ·
1 Parent(s): 15793df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -230,7 +230,7 @@ def search_synthetize(query: str, k: int = 5) -> List[int]:
230
  """
231
  top_k_indices = search(query, k)
232
  expanded = set(top_k_indices)
233
- for i in base:
234
  expanded.add(i - 1)
235
  expanded.add(i + 1)
236
  expanded = {i for i in expanded if 0 <= i < len(images)}
 
230
  """
231
  top_k_indices = search(query, k)
232
  expanded = set(top_k_indices)
233
+ for i in top_k_indices:
234
  expanded.add(i - 1)
235
  expanded.add(i + 1)
236
  expanded = {i for i in expanded if 0 <= i < len(images)}