Here is some problem with path of pickle file. I can't able to deploy the model due to this reason. It was running by using the pickle file from pc. How it works with github clone file

Traceback (most recent call last):

  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script

    exec(code, module.__dict__)

  File "/app/streamlit-app-/iris_webapp.py", line 3, in <module>

    log_model = pickle.load(open('/home/karan/Desktop/Deployment/Iris-Detection/log_model.pkl','rb'))

FileNotFoundError: [Errno 2] No such file or directory: '/home/karan/Desktop/Deployment/Iris-Detection/log_model.pkl'

Hi, @Karan_P_K :wave:

From the above path, it looks like you haven’t kept the model in the same place as your iris_webapp.py file. Can you please try to move your model to the same path as your file? :sweat_smile:

Also, when you upload it to GitHub, then you need to change the file path as well.
Hope this helps! :slightly_smiling_face: