[mirror of https://git.0x0.st/mia/0x0] No-bullshit file hosting and URL shortening service https://0x0.st
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nsfw_detect: Tolerate score computation failure

+2 -2
+2 -2
nsfw_detect.py
··· 77 77 "-cpng", "-i", fpath 78 78 ], stdout=PIPE, stderr=DEVNULL, check=True) 79 79 image_data = ff.stdout 80 + 81 + scores = self._compute(image_data) 80 82 except: 81 83 return -1.0 82 - 83 - scores = self._compute(image_data) 84 84 85 85 return scores[1] 86 86