I am trying to run the bot on command line. However, I m not sure what is the correct script for this.
loop = asyncio.get_event_loop()
logger = logging.getLogger(__name__)
async def parse(serve_forever=True):
interpreter = RasaNLUInterpreter('./model_save/test3/nlu')
action_endpoint = EndpointConfig(url = "http://localhost:5055/webhook")
#action_endpoint = read_config_file('endpoints.yml')
#action_endpoint = AvailableEndpoints.read_endpoints('endpoints.yml')
agent = Agent.load("model_save/test3", interpreter=interpreter,action_endpoint=action_endpoint)
await rasa.core.run.serve_application(agent,channel='cmdline')
return agent
if __name__== "__main__":
loop.run_until_complete(parse())
getting this error by running the script
RuntimeError: Cannot run the event loop while another loop is running
Rasa - 1.8.1
Python - 3.7.6
OS - Windows 10