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

Commit

Permalink
Enable self_chat to seed messages from tasks in parlai_internal (#3852)
Browse files Browse the repository at this point in the history
* Enable self_chat to seed messages from tasks in parlai_internal

* Update parlai/tasks/self_chat/worlds.py

Co-authored-by: Stephen Roller <roller@fb.com>
  • Loading branch information
skywalker023 and stephenroller authored Jul 23, 2021
1 parent 5b71567 commit 59774ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion parlai/tasks/self_chat/worlds.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@


def load_openers(opt) -> Optional[List[str]]:
base_task = opt['task'].split(':')[0]
if opt['task'].startswith('internal:') or opt['task'].startswith('fb:'):
base_task = opt['task']
else:
base_task = opt['task'].split(':')[0]

if base_task == 'self_chat':
# TODO(#2284): Load default openers from s3
return None
Expand Down

0 comments on commit 59774ab

Please sign in to comment.