Error with widgets.fileupload

I got Cuda ran out of memory and the vs code crashed and the cells were damaged!
I just run chapter one of the book with the code

uploader = widgets.FileUpload()
uploader 

and the image I selected Is of size 38 kb.
I tread to restart the kernel and torch.cuda.empty_cache() but in vain.
any help?