VermaSanjayrk / Face_Emotion_Recognition

Face_Emotion_Recognition
0 stars 0 forks source link

keras.preprocessing.image issue #2

Open johnfelipe opened 2 years ago

johnfelipe commented 2 years ago
ImportError: cannot import name 'img_to_array' from 'keras.preprocessing.image' (/usr/local/lib/python3.8/dist-packages/keras/preprocessing/image.py)
Traceback:
File "/usr/local/lib/python3.8/dist-packages/streamlit/scriptrunner/script_runner.py", line 475, in _run_script
    exec(code, module.__dict__)
File "/root/Face_Emotion_Recognition/streamlit_app.py", line 6, in <module>
    from keras.preprocessing.image import img_to_array
VermaSanjayrk commented 2 years ago

can anyone solve it