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

Commit

Permalink
Refactor analysis for per turn eval (#3780)
Browse files Browse the repository at this point in the history
* fixed minor bugs and copied over compile results file

* added refactor for left pane text

* removed unnecessary files

* added new line

* modified comments

* removed extra line

* fixed small bug
  • Loading branch information
mus1cholic authored Jul 15, 2021
1 parent de5a42d commit d17e512
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions parlai/crowdsourcing/tasks/model_chat/model_chat_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +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.annotations_config: Optional[str] = None
if args.blueprint.get("annotations_config_path", "") != "":
annotations_config_path = os.path.expanduser(
Expand Down Expand Up @@ -253,6 +254,12 @@ def __init__(
}
)

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

@abstractmethod
def _get_shared_models(self, args: "DictConfig") -> Dict[str, dict]:
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
blender_90M: >
--model-file zoo:blender/blender_90M/model
--model-file zoo:blender/blender_90M/model

0 comments on commit d17e512

Please sign in to comment.