Skip to content

Commit

Permalink
Update wd14tagger.py
Browse files Browse the repository at this point in the history
Add ", " after each string
  • Loading branch information
mijuku233 authored Oct 26, 2023
1 parent b8a6394 commit f474ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wd14tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def tag(image, model_name, threshold=0.35, character_threshold=0.85, exclu
remove = [s.strip() for s in exclude_tags.lower().split(",")]
all = [tag for tag in all if tag[0] not in remove]

res = ", ".join((item[0].replace("(", "\\(").replace(")", "\\)") for item in all))
res = "".join((item[0].replace("(", "\\(").replace(")", "\\)") + ", " for item in all))

print(res)
return res
Expand Down

0 comments on commit f474ea1

Please sign in to comment.