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

Format left pane refactor add argument #3789

Merged
merged 3 commits into from
Jul 15, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -219,7 +219,7 @@ def __init__(
left_pane_path = os.path.expanduser(args.blueprint.left_pane_text_path)
with open(left_pane_path, "r") as left_pane_file:
self.left_pane_text = left_pane_file.read()
self.format_left_pane_text()
self.format_left_pane_text(args)
self.annotations_config: Optional[str] = None
if args.blueprint.get("annotations_config_path", "") != "":
annotations_config_path = os.path.expanduser(
Expand Down Expand Up @@ -254,7 +254,7 @@ def __init__(
}
)

def format_left_pane_text(self):
def format_left_pane_text(self, args: "DictConfig"):
"""
Modifies self.left_pane_text for code injection
"""
Expand Down