How can i combine flask web app and pytorch in the local?

Now, I want to build a NMT system in the local.
And I have make the bone of this flask web app.
I also implement the NMT model by using pytorch.

How can i combine them to one thing?

I’m confused at it. Can you help me?

On the server side you could import pytorch in your files. Is that your question/ does that not work?