|
@@ -79,7 +79,7 @@ class ContentSecurity:
|
|
result_list = result.data.result
|
|
result_list = result.data.result
|
|
# 配到风险标签且置信分高于80时返回False
|
|
# 配到风险标签且置信分高于80时返回False
|
|
for result in result_list:
|
|
for result in result_list:
|
|
- for result.label in IMAGE_ILLEGAL_LABEL_LIST:
|
|
|
|
|
|
+ if result.label in IMAGE_ILLEGAL_LABEL_LIST:
|
|
if result.confidence >= 80:
|
|
if result.confidence >= 80:
|
|
return False
|
|
return False
|
|
- return True
|
|
|
|
|
|
+ return True
|