golden-panther / glaucoma-detector

Glaucoma detection automation project. Trained a binary image classifier using CNNs and deployed as a streamlit web app. It takes eye (retinal scan) image as input and outputs whether the person is affected by glaucoma or not.
MIT License
20 stars 16 forks source link

Add st.cache to load model #3

Closed jrieke closed 3 years ago

jrieke commented 3 years ago

Hi @golden-panther,

Johannes from the Streamlit team here :) I am currently investigating why apps run over the resource limits of Streamlit Sharing and saw that your app was affected yesterday. Thought I'd send you a small PR that adds st.cache to your app, which should make it consume less memory (and not run into resource limits again!). More about this function here. Hope this works for you and let me know if you have any other questions!

Cheers, Johannes