How can I use as an input a python file (.py or .ipynb -collab)?

I need to insert a .py or .ipynb with a machine learning model to my app in order to recognice images. I know there is a image generator in MIT. But i need my own model. Can someone help me? Or at least give some kind of clue, hint? :wink:
Thank you in advance

Perhaps this?

Skulpt