New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not store a temporary file #11
Comments
Hi @julien-c ! Thanks for your interest and feedback! That's a good point, those tempfiles would eventually accumulate and crash the container... Following your suggestion, I tried as a possibly better solution in #12:
Let me know if this looks OK or you have better options in mind: I avoided using |
Oh yeah, looks perfect that way. |
Cool! I updated the post https://davidefiocco.github.io/2020/06/27/streamlit-fastapi-ml-serving.html accordingly, and I am closing this. Thanks again @julien-c , indeed that'd be great to keep the content coming, let's see how it goes! :) |
Great article and tutorial @davidefiocco!
Just a tiny detail but I'm pretty sure you can just send the binary data from the image using https://pillow.readthedocs.io/en/latest/reference/Image.html#PIL.Image.Image.tobytes and a raw
starlette.Response
Would love to read more about those subjects in the future!
The text was updated successfully, but these errors were encountered: