Skip to content

Commit

Permalink
fix CLIP Interrogator topN regex
Browse files Browse the repository at this point in the history
Co-Authored-By: Martin Rizzo <60830236+martin-rizzo@users.noreply.github.com>
  • Loading branch information
w-e-w and martin-rizzo committed Jan 27, 2024
1 parent 4d5db58 commit 486aeda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/interrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

Category = namedtuple("Category", ["name", "topn", "items"])

re_topn = re.compile(r"\.top(\d+)\.")
re_topn = re.compile(r"\.top(\d+)$")

def category_types():
return [f.stem for f in Path(shared.interrogator.content_dir).glob('*.txt')]
Expand Down

0 comments on commit 486aeda

Please sign in to comment.