Mokuro not using cuda accelerated GPU

I’m trying to use an ocr program named mokuro with my Nvidia GPU but I’m unsure of how to expose the cuda GPU to mokuro. It’s worked in the past but I’m not sure if I either changed something that was making it work before or the update to 25.05 broke it.

The nix code:

{pkgs-stable, ...}: {
  home.packages = with pkgs-stable; [
    mokuro
    python3Packages.torchWithCuda
  ];
}

Any help would be appreciated!