Hi Ruth, thanks for trying out this code 😊.
I have rechecked the code and it is working correctly.
Please make sure you have all the required libraries installed and have executed the code in correct way.
If still this doesn't work then feel free to contact me on twitter