Need some help please

Can anyone help me ,please? I am new to Streamlit and need some help.If u can ,please tell me
github link: https://github.com/lalahashimli/customerChurn/blob/master/pages/Prediction.py
web app link: https://customerchurn-lc8whqvyzghwc7g2v48ley.streamlit.app/Prediction

when click Predict button it gives such error: ModuleNotFoundError: No module named ‘sklearn’
btw, it is working perfectly in my local machine

Traceback:

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)File "/mount/src/customerchurn/pages/Prediction.py", line 172, in <module>
    xgb_pipe = pickle.load(pickled_model)

can anyone help me to solve this problem? it is very important ,please help me

Hey @lalahashimli,

Please update your post with your specific question, a link to your GitHub repo, and a code snippet – we’re happy to help!

That is strange. I tested the app locally and after installing from requirements.txt it worked fine. Could you try deleting and redeploying the app? Are there any errors in the logs, perhaps some installation issue?

1 Like

Thank you very much. It is solved

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.