Upload folder using huggingface_hub
Browse files- linux/libtagforge.so +2 -2
- linux/tagforge_native.py +18 -0
- macos-arm64/libtagforge.dylib +2 -2
- macos-arm64/tagforge_native.py +18 -0
- macos-x64/libtagforge.dylib +2 -2
- macos-x64/tagforge_native.py +18 -0
- version.txt +1 -1
- windows/tagforge.dll +2 -2
- windows/tagforge_native.py +18 -0
linux/libtagforge.so
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65b0d1c3894bb1d71c83ef3ae03bdfb9d0c10d6772768aaa5dcc59dde179b559
|
| 3 |
+
size 22193192
|
linux/tagforge_native.py
CHANGED
|
@@ -41,6 +41,13 @@ try:
|
|
| 41 |
except AttributeError:
|
| 42 |
_HAS_POLICE = False
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
def styles():
|
| 46 |
"""Grouped style menu (tier-gated; a free DLL embeds only free styles). {} if unavailable."""
|
|
@@ -52,6 +59,17 @@ def styles():
|
|
| 52 |
return {}
|
| 53 |
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
def version():
|
| 56 |
"""Embedded taxonomy/data version, e.g. '0.8.0' ('' on older binaries)."""
|
| 57 |
if not _HAS_SEARCH:
|
|
|
|
| 41 |
except AttributeError:
|
| 42 |
_HAS_POLICE = False
|
| 43 |
|
| 44 |
+
# tagforge_nsfw_anatomy is newer still — guard separately so an older binary still loads.
|
| 45 |
+
try:
|
| 46 |
+
_lib.tagforge_nsfw_anatomy.restype = ctypes.c_char_p
|
| 47 |
+
_HAS_ANATOMY = True
|
| 48 |
+
except AttributeError:
|
| 49 |
+
_HAS_ANATOMY = False
|
| 50 |
+
|
| 51 |
|
| 52 |
def styles():
|
| 53 |
"""Grouped style menu (tier-gated; a free DLL embeds only free styles). {} if unavailable."""
|
|
|
|
| 59 |
return {}
|
| 60 |
|
| 61 |
|
| 62 |
+
def nsfw_anatomy():
|
| 63 |
+
"""Genitals-panel anatomy facets (tier-gated; a free DLL embeds only the free subset).
|
| 64 |
+
Structure: {"parts": {part: {subgroup: [tags...]}}}. {} if unavailable."""
|
| 65 |
+
if not _HAS_ANATOMY:
|
| 66 |
+
return {}
|
| 67 |
+
try:
|
| 68 |
+
return json.loads((_lib.tagforge_nsfw_anatomy() or b"{}").decode("utf-8"))
|
| 69 |
+
except Exception:
|
| 70 |
+
return {}
|
| 71 |
+
|
| 72 |
+
|
| 73 |
def version():
|
| 74 |
"""Embedded taxonomy/data version, e.g. '0.8.0' ('' on older binaries)."""
|
| 75 |
if not _HAS_SEARCH:
|
macos-arm64/libtagforge.dylib
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2eead57fb023916698716d0849894ce6db0cace98db68c089fd8fc2880649104
|
| 3 |
+
size 22295792
|
macos-arm64/tagforge_native.py
CHANGED
|
@@ -41,6 +41,13 @@ try:
|
|
| 41 |
except AttributeError:
|
| 42 |
_HAS_POLICE = False
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
def styles():
|
| 46 |
"""Grouped style menu (tier-gated; a free DLL embeds only free styles). {} if unavailable."""
|
|
@@ -52,6 +59,17 @@ def styles():
|
|
| 52 |
return {}
|
| 53 |
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
def version():
|
| 56 |
"""Embedded taxonomy/data version, e.g. '0.8.0' ('' on older binaries)."""
|
| 57 |
if not _HAS_SEARCH:
|
|
|
|
| 41 |
except AttributeError:
|
| 42 |
_HAS_POLICE = False
|
| 43 |
|
| 44 |
+
# tagforge_nsfw_anatomy is newer still — guard separately so an older binary still loads.
|
| 45 |
+
try:
|
| 46 |
+
_lib.tagforge_nsfw_anatomy.restype = ctypes.c_char_p
|
| 47 |
+
_HAS_ANATOMY = True
|
| 48 |
+
except AttributeError:
|
| 49 |
+
_HAS_ANATOMY = False
|
| 50 |
+
|
| 51 |
|
| 52 |
def styles():
|
| 53 |
"""Grouped style menu (tier-gated; a free DLL embeds only free styles). {} if unavailable."""
|
|
|
|
| 59 |
return {}
|
| 60 |
|
| 61 |
|
| 62 |
+
def nsfw_anatomy():
|
| 63 |
+
"""Genitals-panel anatomy facets (tier-gated; a free DLL embeds only the free subset).
|
| 64 |
+
Structure: {"parts": {part: {subgroup: [tags...]}}}. {} if unavailable."""
|
| 65 |
+
if not _HAS_ANATOMY:
|
| 66 |
+
return {}
|
| 67 |
+
try:
|
| 68 |
+
return json.loads((_lib.tagforge_nsfw_anatomy() or b"{}").decode("utf-8"))
|
| 69 |
+
except Exception:
|
| 70 |
+
return {}
|
| 71 |
+
|
| 72 |
+
|
| 73 |
def version():
|
| 74 |
"""Embedded taxonomy/data version, e.g. '0.8.0' ('' on older binaries)."""
|
| 75 |
if not _HAS_SEARCH:
|
macos-x64/libtagforge.dylib
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f151e94c0bd68da3ca1cc38285078bb7ba86fe46d2e689c2670948869518007
|
| 3 |
+
size 22135424
|
macos-x64/tagforge_native.py
CHANGED
|
@@ -41,6 +41,13 @@ try:
|
|
| 41 |
except AttributeError:
|
| 42 |
_HAS_POLICE = False
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
def styles():
|
| 46 |
"""Grouped style menu (tier-gated; a free DLL embeds only free styles). {} if unavailable."""
|
|
@@ -52,6 +59,17 @@ def styles():
|
|
| 52 |
return {}
|
| 53 |
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
def version():
|
| 56 |
"""Embedded taxonomy/data version, e.g. '0.8.0' ('' on older binaries)."""
|
| 57 |
if not _HAS_SEARCH:
|
|
|
|
| 41 |
except AttributeError:
|
| 42 |
_HAS_POLICE = False
|
| 43 |
|
| 44 |
+
# tagforge_nsfw_anatomy is newer still — guard separately so an older binary still loads.
|
| 45 |
+
try:
|
| 46 |
+
_lib.tagforge_nsfw_anatomy.restype = ctypes.c_char_p
|
| 47 |
+
_HAS_ANATOMY = True
|
| 48 |
+
except AttributeError:
|
| 49 |
+
_HAS_ANATOMY = False
|
| 50 |
+
|
| 51 |
|
| 52 |
def styles():
|
| 53 |
"""Grouped style menu (tier-gated; a free DLL embeds only free styles). {} if unavailable."""
|
|
|
|
| 59 |
return {}
|
| 60 |
|
| 61 |
|
| 62 |
+
def nsfw_anatomy():
|
| 63 |
+
"""Genitals-panel anatomy facets (tier-gated; a free DLL embeds only the free subset).
|
| 64 |
+
Structure: {"parts": {part: {subgroup: [tags...]}}}. {} if unavailable."""
|
| 65 |
+
if not _HAS_ANATOMY:
|
| 66 |
+
return {}
|
| 67 |
+
try:
|
| 68 |
+
return json.loads((_lib.tagforge_nsfw_anatomy() or b"{}").decode("utf-8"))
|
| 69 |
+
except Exception:
|
| 70 |
+
return {}
|
| 71 |
+
|
| 72 |
+
|
| 73 |
def version():
|
| 74 |
"""Embedded taxonomy/data version, e.g. '0.8.0' ('' on older binaries)."""
|
| 75 |
if not _HAS_SEARCH:
|
version.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
0.4.
|
|
|
|
| 1 |
+
0.4.4
|
windows/tagforge.dll
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b96cbf64c5e4925fb9c3fd4fe9fab95dde044523dab16291ad2a824d70fbf1a
|
| 3 |
+
size 22176768
|
windows/tagforge_native.py
CHANGED
|
@@ -41,6 +41,13 @@ try:
|
|
| 41 |
except AttributeError:
|
| 42 |
_HAS_POLICE = False
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
def styles():
|
| 46 |
"""Grouped style menu (tier-gated; a free DLL embeds only free styles). {} if unavailable."""
|
|
@@ -52,6 +59,17 @@ def styles():
|
|
| 52 |
return {}
|
| 53 |
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
def version():
|
| 56 |
"""Embedded taxonomy/data version, e.g. '0.8.0' ('' on older binaries)."""
|
| 57 |
if not _HAS_SEARCH:
|
|
|
|
| 41 |
except AttributeError:
|
| 42 |
_HAS_POLICE = False
|
| 43 |
|
| 44 |
+
# tagforge_nsfw_anatomy is newer still — guard separately so an older binary still loads.
|
| 45 |
+
try:
|
| 46 |
+
_lib.tagforge_nsfw_anatomy.restype = ctypes.c_char_p
|
| 47 |
+
_HAS_ANATOMY = True
|
| 48 |
+
except AttributeError:
|
| 49 |
+
_HAS_ANATOMY = False
|
| 50 |
+
|
| 51 |
|
| 52 |
def styles():
|
| 53 |
"""Grouped style menu (tier-gated; a free DLL embeds only free styles). {} if unavailable."""
|
|
|
|
| 59 |
return {}
|
| 60 |
|
| 61 |
|
| 62 |
+
def nsfw_anatomy():
|
| 63 |
+
"""Genitals-panel anatomy facets (tier-gated; a free DLL embeds only the free subset).
|
| 64 |
+
Structure: {"parts": {part: {subgroup: [tags...]}}}. {} if unavailable."""
|
| 65 |
+
if not _HAS_ANATOMY:
|
| 66 |
+
return {}
|
| 67 |
+
try:
|
| 68 |
+
return json.loads((_lib.tagforge_nsfw_anatomy() or b"{}").decode("utf-8"))
|
| 69 |
+
except Exception:
|
| 70 |
+
return {}
|
| 71 |
+
|
| 72 |
+
|
| 73 |
def version():
|
| 74 |
"""Embedded taxonomy/data version, e.g. '0.8.0' ('' on older binaries)."""
|
| 75 |
if not _HAS_SEARCH:
|