Image_generator has incorrect type. Expected: typing.Callable, but got: <class 'NoneType'>

Hello everyone,
I am trying to code the happy and sad image problem, but I do not understand what’s wrong with this code. Can anyone help me with that?



and the errors are:

Thank you very much for your help in advance.

Regards,
Farnoosh

Based on this notebook tensorflow-1-public/C1W4_Assignment.ipynb at main · https-deeplearning-ai/tensorflow-1-public · GitHub

seems like the function takes in train_generator as a parameter. Did you modify the function signature?

One more thing. Rename f = train_happy_sad_model() to whatever was there originally.

Could you Refresh your notebook and reply on how things go?

Please remove references to code in your post.