In one of datascience web app project, I designed an app to predict the type of plant disease. It contains onnx models. The prediction runs without an error standalone. But inside the streamlit code, it raises an error:
UFuncTypeError: ufunc 'subtract' did not contain a loop with signature matching types (dtype('<U23'), dtype('float32')) -> None**
Did someone come across this kind of a situation?
This is the link to the project files: https://drive.google.com/drive/folders/1TVn9zRaJsoMUPz_6puaWk11LFkpvIyyl?usp=sharing (to run the project, after installing dependancies, run streamlit run webapp_plant_dis_clas.py
, for now only model for the tomato exists. so only select it inside the web app to make a prediction.)