Add a pause in the print just before printing the top layer so that you can insert the magnet.
The author marked this model as their own original creation.