At first glance, it appears there may be an error in your my_model() function.
What have you done with all of the notebook comments and doctext?