Compare commits

..

No commits in common. "main" and "v0.13.2" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "wdtagger"
version = "0.14.0"
version = "0.13.2"
description = "A simple and easy-to-use wrapper for the tagger model created by [SmilingWolf](https://github.com/SmilingWolf) which is specifically designed for tagging anime illustrations."
authors = [{ name = "Jianqi Pan", email = "jannchie@gmail.com" }]
readme = "README.md"

View File

@ -125,7 +125,7 @@ class Result:
"""Return general tags as a tuple."""
return tuple(
d.replace("_", " ")
d.replace("_", " ").replace("(", R"\(").replace(")", R"\)")
for d in sorted(
self.general_tag_data,
key=lambda k: self.general_tag_data[k],
@ -137,7 +137,7 @@ class Result:
def character_tags(self) -> tuple[str, ...]:
"""Return character tags as a tuple."""
return tuple(
d.replace("_", " ")
d.replace("_", " ").replace("(", R"\(").replace(")", R"\)")
for d in sorted(
self.character_tag_data,
key=lambda k: self.character_tag_data[k],