docker run broken

#1
by priamai - opened

Hi there,
I run the docker image (notice the port mapped were wrong):

docker run -it -p 8501:8501 --platform=linux/amd64 registry.hf.space/seetha-ima-pipeline-streamlit:latest streamlit run app.py

I am getting this error:

2023-07-24 17:57:07.017 Uncaught app exception
Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/home/user/app/app.py", line 647, in
main()
File "/home/user/app/app.py", line 176, in main
loaded_model = pickle.load(open(filename, 'rb'))
AttributeError: Can't get attribute '_passthrough_scorer' on <module 'sklearn.metrics._scorer' from '/home/user/.local/lib/python3.10/site-packages/sklearn/metrics/_scorer.py'>

I am not sure how to fix this problem, it seems to suggest that the saved model in sklearn is missing that attribute?

Thanks for letting me know. It's working now.

Sign up or log in to comment