Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1113 from RasaHQ/fix_args_interactive_training
Browse files Browse the repository at this point in the history
pass action and nlg endpoints to agent.load
  • Loading branch information
amn41 committed Oct 4, 2018
2 parents 7637c50 + 55ada9d commit bc6773a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rasa_core/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ def train_dialogue_model(domain_file, stories_file, output_path,
else:
logger.info("loading a pre-trained model. ",
"all training-related parameters will be ignored")
_agent = Agent.load(cmdline_args.core, interpreter=_interpreter)
_agent = Agent.load(cmdline_args.core,
interpreter=_interpreter,
generator=_endpoints.nlg,
action_endpoint=_endpoints.action)
else:
if not cmdline_args.out:
raise ValueError("you must provide a path where the model "
Expand Down

0 comments on commit bc6773a

Please sign in to comment.