Help Needed: Error in Deployed ML Prediction App

Hello everyone,

I’ve recently developed an application that utilizes machine learning for predictions. Initially, everything was running smoothly when I tested it locally. However, upon deploying the application, it seems to encounter an error and fails to make predictions. The specific error message I’m encountering is:

Error making prediction: 'NoneType' object is not callable

I’ve uploaded both the application and its source code to GitHub.

Here’s the link to the app.py file: app.py.

I would greatly appreciate any assistance or insights into resolving this issue. Thank you in advance for your help!

Add scikit-learn in your requirements.txt

Remove the pandas as it is already added by streamlit.

streamlit==1.32.2
lightgbm==4.2.0
scikit-learn

Great, it’s working now. Thank you so much for your help!

1 Like

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