Closed mfidino closed 5 years ago
Looks like the JPG file was not included in gallery because JPG
is in the .gitignore
:
https://github.com/uptake/autofocus/blob/735dde586a67b6466a5818b215d503731c2de677/.gitignore#L95
I'm working on some image preprocessing in R that follows a bit of what is done in preprocess.py
and makes a temporary jpg that can get sent to predict
.
The container gsganden/autofocus_serve:1.2.2
on dockerhub has a fix already. I'm working on a fix for the code. I'm not sure what happened -- I thought that I was passing a test for this issue.
curl -F "file=@./gallery/fawn.JPG" -X POST http://0.0.0.0:8000/predict
returns:
File type not allowed. File must be of type {'png', 'jpeg', 'bmp', 'gif', 'jpg'}
While
curl -F "file=@./gallery/fawn.jpg" -X POST http://0.0.0.0:8000/predict
returns
Note that fawn.JPG does not exist in the gallery folder (though it is in gallery.zip).