Hi, I’m having the same error. The weird thing is it works if I’m working (saving and loading) inside a Jupyter notebook but if I save the model from within a Python file and try to load it later, I’m getting the same error.
TypeError: <module '__main__'> is a built-in class

@Mohammad_Hassan_Soha, that trick doesn’t work for me. I’m still getting the error.