Torch.hub.load custom model

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device(‘cpu’) to map your storages to the CPU.


ım getting this error while making yolo webapp
here is my code

The error message actually gives a clear indication of what the problem might be, doesn’t it?