Skip to content Skip to sidebar Skip to footer

'list' Object Has No Attribute 'predict'

I want to deploy a breast cancer detection ml model using flask. here's the error: File 'C:\Users\sakshi sanket\Desktop\Breastcancer\app.py', line 22, in predict output = model

Solution 1:

Try output = model[0].predict(df). Since it is a list, using [0] should reference a single item.


Post a Comment for "'list' Object Has No Attribute 'predict'"