Deploying python app from Github

Hello Everyone,
Im new to building and deploying applications on streamlit. I just recently tried to deploy a predictive maintenance application I built as sort of a “proof of concept”. Both the model and the application were built in Google Colab and pushed to Github but since I’ve encountered errors:" ```
CalledProcessError: Command ‘[’/home/adminuser/venv/bin/python’, ‘-m’, ‘pip’,


‘install’, ‘joblib’, ‘matplotlib’]’ returned non-zero exit status 1.


Check the permissions.



[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python -m pip install --upgrade pip" 
Here is the link to the application: https://predictivemaintenanceforequipment.streamlit.app/
Here's a link to the github repo: https://github.com/Raphael181/PredictiveMaintenanceforEquipment

This is how you install python dependencies in Streamlit Cloud.

Thank you, while this helped in making the app run, I have encountered another issue.
Here is the error code: “AttributeError: ‘DecisionTreeClassifier’ object has no attribute ‘monotonic_cst’”, which doesn’t make sense as I am using a RandomForestClassifier. Possibly an error in my model?

The traceback should tell you where the error comes from. If it happens while loading a pickled model, you may need a different version of scikit-learn.

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