Could you post the code to text_encoder?
In your notebook it’s loaded from models.py, which seems to be missing.
I’m not that familiar with ONNX, but is there a reason, you are using _export instead of .export?
Exporting a model with an Embedding layer and multiple outputs works, so I would have to see your whole model to see the reason it’s failing.