Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
324ed4f7b0 | ||
|
094960e721 |
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "wdtagger"
|
||||
version = "0.13.2"
|
||||
version = "0.14.0"
|
||||
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"
|
||||
|
@ -125,7 +125,7 @@ class Result:
|
||||
"""Return general tags as a tuple."""
|
||||
|
||||
return tuple(
|
||||
d.replace("_", " ").replace("(", R"\(").replace(")", R"\)")
|
||||
d.replace("_", " ")
|
||||
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("_", " ").replace("(", R"\(").replace(")", R"\)")
|
||||
d.replace("_", " ")
|
||||
for d in sorted(
|
||||
self.character_tag_data,
|
||||
key=lambda k: self.character_tag_data[k],
|
||||
|
Loading…
x
Reference in New Issue
Block a user