I am building a ML model to predict a car price using linear regression. However iI got this error while deploying on streamlit:
FileNotFoundError: [Errno 2] No such file or directory: ‘car_price_model.pkl’
Need help! Following is my github repo:
I am building a ML model to predict a car price using linear regression. However iI got this error while deploying on streamlit:
FileNotFoundError: [Errno 2] No such file or directory: ‘car_price_model.pkl’
Need help! Following is my github repo:
Hi there!
It appears you have not included the ‘car_price_model.pkl’ file in your Github repository. Can you upload the ‘car_price_model.pkl’ file to your repo and try again?
Cheers,
Moiz
Yes you are correct
I already stored the ‘car_price_model.pkl’ in another py file name app2.py.
Hey @CHING_PANG_GOH , try running app2.py
file first so that it creates .pkl
file first. And then run load.py
. And after that push it on github.
Also make sure you are running it on terminal opened in same directory.
Like its not exactly storing but that py file can generate that model
So if you place that model directly then it dont need to execute again and again everytime
and the load.py file will directly take pkl file and executes
So place that pkl file there ,dont delete it and execute
it should work!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
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.
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.
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.
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.