Spaces:
Sleeping
Sleeping
Upload 9 files
Browse files- README.md +1 -1
- app.py +3 -2
- danbooru_to_ja.py +3 -2
- e621_ja_dict.json +0 -0
- local/danbooru_to_ja.py +3 -2
- local/e621_ja_dict.json +0 -0
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title: Danbooru Tag to Japanese Tag Converter V2
|
3 |
emoji: π¦π»
|
4 |
colorFrom: pink
|
5 |
colorTo: yellow
|
|
|
1 |
---
|
2 |
+
title: Danbooru Tag and E621 Tag to Japanese Tag Converter V2
|
3 |
emoji: π¦π»
|
4 |
colorFrom: pink
|
5 |
colorTo: yellow
|
app.py
CHANGED
@@ -7,8 +7,9 @@ DESCRIPTION_MD = """
|
|
7 |
""".strip()
|
8 |
|
9 |
DESCRIPTION_MD2 = """
|
10 |
-
The dictionary was generated using the following repository
|
11 |
-
|
|
|
12 |
""".strip()
|
13 |
|
14 |
css = """"""
|
|
|
7 |
""".strip()
|
8 |
|
9 |
DESCRIPTION_MD2 = """
|
10 |
+
The dictionary was generated using the following repository:
|
11 |
+
- [p1atdev/danbooru-ja-tag-pair-20240715](https://huggingface.co/datasets/p1atdev/danbooru-ja-tag-pair-20240715)
|
12 |
+
- [ponapon280/danbooru-e621-converter](https://github.com/ponapon280/danbooru-e621-converter)
|
13 |
""".strip()
|
14 |
|
15 |
css = """"""
|
danbooru_to_ja.py
CHANGED
@@ -17,7 +17,7 @@ def load_json_dict(path: str):
|
|
17 |
return dict
|
18 |
|
19 |
|
20 |
-
danbooru_ja_dict = load_json_dict('danbooru_ja_dict.json')
|
21 |
|
22 |
|
23 |
def danbooru_tags_to_jas(tags: list[str]):
|
@@ -75,4 +75,5 @@ if __name__ == "__main__":
|
|
75 |
# python danbooru_to_ja.py --tags "1girl, oomuro sakurako, solo, sitting, starry sky"
|
76 |
# python danbooru_to_ja.py --file inputtag.txt
|
77 |
# python danbooru_to_ja.py --file inputtag.txt --append True
|
78 |
-
# Datasets: https://huggingface.co/datasets/p1atdev/danbooru-ja-tag-pair-20240715
|
|
|
|
17 |
return dict
|
18 |
|
19 |
|
20 |
+
danbooru_ja_dict = load_json_dict('e621_ja_dict.json') | load_json_dict('danbooru_ja_dict.json')
|
21 |
|
22 |
|
23 |
def danbooru_tags_to_jas(tags: list[str]):
|
|
|
75 |
# python danbooru_to_ja.py --tags "1girl, oomuro sakurako, solo, sitting, starry sky"
|
76 |
# python danbooru_to_ja.py --file inputtag.txt
|
77 |
# python danbooru_to_ja.py --file inputtag.txt --append True
|
78 |
+
# Datasets: https://huggingface.co/datasets/p1atdev/danbooru-ja-tag-pair-20240715
|
79 |
+
# Datasets: https://github.com/ponapon280/danbooru-e621-converter
|
e621_ja_dict.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
local/danbooru_to_ja.py
CHANGED
@@ -17,7 +17,7 @@ def load_json_dict(path: str):
|
|
17 |
return dict
|
18 |
|
19 |
|
20 |
-
danbooru_ja_dict = load_json_dict('danbooru_ja_dict.json')
|
21 |
|
22 |
|
23 |
def danbooru_tags_to_jas(tags: list[str]):
|
@@ -75,4 +75,5 @@ if __name__ == "__main__":
|
|
75 |
# python danbooru_to_ja.py --tags "1girl, oomuro sakurako, solo, sitting, starry sky"
|
76 |
# python danbooru_to_ja.py --file inputtag.txt
|
77 |
# python danbooru_to_ja.py --file inputtag.txt --append True
|
78 |
-
# Datasets: https://huggingface.co/datasets/p1atdev/danbooru-ja-tag-pair-20240715
|
|
|
|
17 |
return dict
|
18 |
|
19 |
|
20 |
+
danbooru_ja_dict = load_json_dict('e621_ja_dict.json') | load_json_dict('danbooru_ja_dict.json')
|
21 |
|
22 |
|
23 |
def danbooru_tags_to_jas(tags: list[str]):
|
|
|
75 |
# python danbooru_to_ja.py --tags "1girl, oomuro sakurako, solo, sitting, starry sky"
|
76 |
# python danbooru_to_ja.py --file inputtag.txt
|
77 |
# python danbooru_to_ja.py --file inputtag.txt --append True
|
78 |
+
# Datasets: https://huggingface.co/datasets/p1atdev/danbooru-ja-tag-pair-20240715
|
79 |
+
# Datasets: https://github.com/ponapon280/danbooru-e621-converter
|
local/e621_ja_dict.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|