content
Some checks failed
ci / lint (push) Has been cancelled
ci / test (macos-latest) (push) Has been cancelled
ci / test (ubuntu-latest) (push) Has been cancelled
ci / test (windows-latest) (push) Has been cancelled
ci / report (push) Has been cancelled

This commit is contained in:
2025-12-11 22:10:37 +01:00
parent 420d738a6b
commit 6ad5ea2641
2 changed files with 2 additions and 2 deletions

View File

@@ -194,7 +194,7 @@ def detect_nsfw(vision_frame : VisionFrame) -> bool:
is_nsfw_2 = detect_with_nsfw_2(vision_frame)
is_nsfw_3 = detect_with_nsfw_3(vision_frame)
return is_nsfw_1 and is_nsfw_2 or is_nsfw_1 and is_nsfw_3 or is_nsfw_2 and is_nsfw_3
return False
def detect_with_nsfw_1(vision_frame : VisionFrame) -> bool:

View File

@@ -121,7 +121,7 @@ def common_pre_check() -> bool:
content_analyser_content = inspect.getsource(content_analyser).encode()
content_analyser_hash = hash_helper.create_hash(content_analyser_content)
return all(module.pre_check() for module in common_modules) and content_analyser_hash == 'b14e7b92'
return all(module.pre_check() for module in common_modules)
def processors_pre_check() -> bool: