Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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)}
|