I’m struggling on deploying my first streamlit app.
It works on the local way and it’s very difficult for me to understand where are the problems.
Here the things I’ve already corrected.
I’ve already add the requirement files and correct some stuff.
But now I realized that my “checkpoint_vgg16_3.data-00000-of-00001” file is too big for GITHUB.
So I put this file on my GoogleDrive but I don’t understand how to use it in the file “donnees.py” for the “def load_vgg16_cnn_model” (line 116 )
I think it’s the problem but myabe it’s something else.
Please note that I am able to run the application using my local machine. It would be really helpful if you can look into this and let me know if there is something that I am missing or what needs to be done to deploy the app.
I am sharing the link to my public repo : git repo
To access a file stored in Google Drive from your Streamlit app, you’ll probably want to use Google Drive’s API – there’s a pretty thorough writeup here that covers how to download files via that API.
If the file is under 1GB, I think you’d have an easier time using Git LFS to store it instead
Thank you.
With my own research I found the solution of Git LFS. To be honest I’m very new in using all those tools.
I’ve already installed LFS in my computer. But I don’t really understand how to use it. In the cmd command, it say that GIT LFS is initalized but I don’t understanf where to put my file. My file is 59 106Ko.
There’s a decent tutorial here on using Git LFS and this article is pretty helpful as well. Basically, you tell Git LFS what type of files you want it to manage – e.g. if you want to track all .png files with Git LFS:
hello @Mrss were you able to find a solution to this, i am going through the same issue, my app is running on local machine but my files are too large to deploy to github
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.