pull/204/head
nickthelegend 2023-06-25 16:10:32 +04:00 committed by GitHub
parent 2a51bea0e2
commit ac2d6c64a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -3,7 +3,4 @@ from ifnude import detect
def convert_to_sd(img):
shapes = []
chunks = detect(img)
for chunk in chunks:
shapes.append(chunk["score"])
return [any(shapes), tempfile.NamedTemporaryFile(delete=False, suffix=".png")]