Loading pretrained model onto flask website

After creating a model following the quickstart guide (Quickstart — OpenNMT-py documentation), I want to use it with my flask website. I’m not sure how to load and use the model

Dear Alice,

You can check this tutorial on how to build a simple interface for machine translation:

Please note that CTranslate2 supports only Transformer models, as explained here:
https://opennmt.net/OpenNMT-py/FAQ.html#how-do-i-use-the-transformer-model

For more details, feel free to check this tutorial:

All the best,
Yasmin

1 Like