Runtime error Keras

Traceback (most recent call last):
  File "app.py", line 7, in <module>
    cnn_model = keras.models.load_model("fine_tuning.keras")
NameError: name 'keras' is not defined

Hey @Abdul09 it seems you haven’t defined Keras in your application file. Have you tried adding from tensorflow import keras at the top of your file?

Also, in the future, it would be much easier to help if you gave some more information about your problem :smile: - It’s pretty hard to debug just a copy pasted error trace.

1 Like