In general cases, we mostly follow the above diagram for deployment. There are 4 layers to consider:
Visitors to an e-commerce website for sunglasses, for example, could be able to try out different frames on their own uploaded photographs using a relatively elementary vision AI model.
The website's business logic used for the model may comprise a process such that the Web camera asking for permission to operate or uploading files from the user's computer, the user specifying with glasses they want to test, sending that to the model, which in turns return an image combining the uploaded image with glasses added at the appropriate location.
To build such an architecture, web frameworks are used which makes it fairly easy. The frameworks can be installed as a python package and then you can run an interface to interact with the models on any machine.