Logistic Regression object is not callable

Please any one in the house, I try to deploy my model which I trained with logistics regression model, but after the pickling process. The interface show perfectly, but whenever I click on my predict button, it shows me

LogisticsRegression object is not callable

Please any assistance to resolve this. Thank you in advance for your help.

Hi @abumuaadh97

This does not look like a Streamlit problem, but a problem of how you are using the LogisticRegression object to predict in your source code.

Try replacing the line

prediction = lg([[Oxygen, Temperature, Humidity]])

with

prediction = lg.predict([[Oxygen, Temperature, Humidity]])

in the function predict_note_authentication and see if that helps :slight_smile:

Thank you for reply, I will get back to you. If it works. Thank you so much, I really appreciate