Cannot load predictive classifier model into streamlit application

Error loading the model: 255
2023-07-23 19:40:56.177 Uncaught app exception
Traceback (most recent call last):
File “C:\foranaconda\envs\MLDP\lib\site-packages\streamlit\runtime\scriptrunner\”, line 552, in _run_script
exec(code, module.dict)
File “C:\Users\User\MLDP\”, line 67, in
File “C:\Users\User\MLDP\”, line 54, in main
prediction = classifier.predict(input_data)
AttributeError: ‘NoneType’ object has no attribute ‘predict’

please help me solve this, its for my school project

Ensure that the data (input_data) you are passing to the predict function is in the correct format and matches the input requirements of the classifier. Some machine learning models have specific input data requirements, such as shape and data type.

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