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

Commit

Permalink
Format left pane refactor add argument (#3789)
Browse files Browse the repository at this point in the history
* added args argument for format_left_pane_text

* added argument for format_left_pane_text

* autoformat
  • Loading branch information
mus1cholic authored Jul 15, 2021
1 parent d17e512 commit 21c7492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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,9 +254,9 @@ def __init__(
}
)

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

Expand Down

0 comments on commit 21c7492

Please sign in to comment.