Done
parent
2a51bea0e2
commit
ac2d6c64a3
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Reference in New Issue