Using PhP to deploy pytorch and python packages?

Hi, I am trying to execute python script from PHP but it is doesn’t works from pytorch? Any hint or idea what could be the reason?

I think that’s really a PHP question more than a PyTorch one, so this forum might not be the ideal venue…
That said, you might consider implementing a flask or similar server for your PyTorch model and connect to that from PHP.

Best regards