Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Update model_chat_blueprint.py (#3429)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anon-Artist committed Feb 3, 2021
1 parent 15fbf55 commit 4374fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parlai/crowdsourcing/tasks/model_chat/model_chat_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def __init__(

def _get_shared_models(self, args: "DictConfig") -> Dict[str, dict]:
with open(args.blueprint.model_opt_path) as f:
all_model_opts = yaml.load(f.read())
all_model_opts = yaml.safe_load(f.read())
active_model_opts = {
model: opt
for model, opt in all_model_opts.items()
Expand Down Expand Up @@ -557,5 +557,5 @@ def __init__(

def _get_shared_models(self, args: "DictConfig") -> Dict[str, dict]:
with open(args.blueprint.model_opt_path) as f:
model_opts = yaml.load(f.read())
model_opts = yaml.safe_load(f.read())
return TurkLikeAgent.get_bot_agents(args=args, model_opts=model_opts)

0 comments on commit 4374fa2

Please sign in to comment.