Public app - https://leafdisease.streamlit.app/
Github repo - GitHub - PranjalAsthana/Plant-Leaf-Disease-Classification-Using-CNN
I keep getting this error ““import tensorflow as tf ModuleNotFoundError: No module named ‘tensorflow’”” which is the only reason holding back my app from running. I have tried every solution on the web but nothing seems to work. There is no problem with my local machine either. It works fine on my local machine.
When using pip freeze requirements.txt I was getting 201 libraries which would crash the app, so I took out the file and replaced it with only the required files. Now I get error in importing tensorflow. The app works completely on local machine, no errors whatsoever.
Please take a look and help me out with this problem.
Full Error Traceback -
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.__dict__)File "/mount/src/plant-leaf-disease-classification-using-cnn/plantdiseaseapp.py", line 2, in <module>
import tensorflow as tf
Panel text -
Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.__dict__)
File "/mount/src/plant-leaf-disease-classification-using-cnn/plantdiseaseapp.py", line 2, in <module>
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
2023-12-15 18:58:03.803 503 GET /script-health-check (10.12.100.81) 135.21ms
Streamlit ver-1.28.1
Python ver-3.115