That's the point of ZKPs. The prover trains it and creates the proof, then anybody can verify that it happened without revealing any more information.