Handle unexpected errors in the web service, for example if given an invalid or corrupt image file.
Fix `autotag` so you can pass a filename of '-' to read a file from stdin. This way you can do this: docker run --rm -i ghcr.io/danbooru/autotagger autotag - < image.jpg ...to perform prediction on a single file outside of Docker.
Do batch prediction inside the `predict` method instead of calling `predict` once for each image.