app.py
In my app.py file, I have written this code to load the model (random_forest_reg_model.pkl):
filename = 'random_forest_reg_model.pkl'
model = pickle.load(open(filename, "rb"))
Error
Now I am getting this error:
C:\Users\ADMIN\anaconda3\envs\carpriceprediction\lib\site-packages\sklearn\base.py:310: UserWarning: Trying to unpickle estimator RandomForestRegressor from version 0.23.2 when using version 0.24.1. This might lead to breaking code or invalid results. Use at your own risk.
warnings.warn(
Traceback (most recent call last):
File "C:\Users\ADMIN\Desktop\ML\Projects\CarPricePrediction\app.py", line 10, in <module>
model = pickle.load(open(filename, "rb"))
EOFError: Ran out of input