Take a look at this thread - Exposing DL models as api's/microservices
@daveluo has given a detailed account of deploying FastAI / PyTorch using Flak App and you can may be able to use his CocoApp as a template for your own work.
Take a look at this thread - Exposing DL models as api's/microservices
@daveluo has given a detailed account of deploying FastAI / PyTorch using Flak App and you can may be able to use his CocoApp as a template for your own work.