content
This commit is contained in:
@@ -194,7 +194,7 @@ def detect_nsfw(vision_frame : VisionFrame) -> bool:
|
|||||||
is_nsfw_2 = detect_with_nsfw_2(vision_frame)
|
is_nsfw_2 = detect_with_nsfw_2(vision_frame)
|
||||||
is_nsfw_3 = detect_with_nsfw_3(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:
|
def detect_with_nsfw_1(vision_frame : VisionFrame) -> bool:
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ def common_pre_check() -> bool:
|
|||||||
content_analyser_content = inspect.getsource(content_analyser).encode()
|
content_analyser_content = inspect.getsource(content_analyser).encode()
|
||||||
content_analyser_hash = hash_helper.create_hash(content_analyser_content)
|
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:
|
def processors_pre_check() -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user