How to use models outside of Rasa Shell?

@abb unzip the model as its tar.gz ?

@abb see from stackoverflow hope it will help

In that case you don’t need to pass an interpreter. If you used rasa train without the nlu or core mode then the full stacked model will be saved as a .tar.gz in the models directory. Load that with agent = Agent.load('path/to/model.tar.gz') and then you can handle text with asyncio.run(agent.handle_text("hello")) (or await agent.handle_text("hello") if it’s inside a function)

@abb check this link also https://codechina.csdn.net/ras/rasa/-/blob/266b3d30655248a2a9bdb95268caaab80cd5e564/tests/core/test_agent.py