SauravMaheshkar commited on
Commit
e5a7396
·
unverified ·
1 Parent(s): f4b23ea

fix: set top k as 1

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def augment(img, transforms=transforms) -> torch.Tensor:
29
  return transforms(img).unsqueeze(0)
30
 
31
 
32
- def search_index(input_image, k: int):
33
  with torch.no_grad():
34
  embedding = model(augment(input_image))
35
  index = read_index("./bin/dino.index")
 
29
  return transforms(img).unsqueeze(0)
30
 
31
 
32
+ def search_index(input_image, k = 1):
33
  with torch.no_grad():
34
  embedding = model(augment(input_image))
35
  index = read_index("./bin/dino.index")