Hi all,
I’m currently using RASA 2.8.1. My project require me to call rasa train from the python script and then replace the currently used model with the newly trained one.
Previously, I have used subprocess to call this line from a script
rasa train --domain data
I have 2 problems:
Are there any way to call rasa train directly from the python code without going through bash?
After training, how can I use the new model without restarting rasa server?
I use a custom channel in rasa to receive an api which signal training new model and then replacing it. If I kill, train and then start the model again, then is there any problems that can happen with the ongoing conversations?
Yeah, because I found the train/unload/replace trained model in the HTTP api page so I figured that there are ways to do it in python code.
Can you show me where I can find the code for the HTTP API in RASA github?
https://rasa.com/docs/rasa/pages/http-api#operation/unloadModel
thanks for reply @jonathanpwheat,
I’m successfully able to delete the current model on server by hitting api
but unable to put or replace model when server is running, it will be really helpful if you find the answer