Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from rasa_core.agent import Agent
- from rasa_core.interpreter import NaturalLanguageInterpreter
- from rasa_core.utils import EndpointConfig
- from rasa_core.run import serve_application
- from rasa_core.train import online
- def run(dbug=False):
- if dbug:
- init_dbug_logging()
- interpreter = NaturalLanguageInterpreter.create('./models/default/healthbot')
- action_endpoint = EndpointConfig(url='http://localhost:5055/webhook')
- agent = Agent.load(path='./models/dialogue', interpreter=interpreter,
- action_endpoint=action_endpoint)
- # serve_application(agent, channel='cmdline')
- online.serve_agent(agent)
- if __name__ == "__main__":
- run()
Add Comment
Please, Sign In to add comment