Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wangruya authored and wangruya committed Jun 25, 2022
2 parents 1a178c1 + c2936c6 commit 7be1dbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hello-jina2/customIndexer/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def getRange(self, maxItem, result: list, thod = 0.1, ignore_range: list[int] =
rightIndex = i
else:
break
return leftIndex, rightIndex, d_result[maxIndex]
if (rightIndex - leftIndex) > 60:
return self.getRange(maxItem, result, thod/2, ignore_range)
return leftIndex, max(rightIndex, leftIndex + 10), d_result[maxIndex]

def score(self, image_features, text_features):

Expand Down

0 comments on commit 7be1dbb

Please sign in to comment.