Skip to content

Commit

Permalink
small fix for message class convai2/interactive.py (facebookresearch#…
Browse files Browse the repository at this point in the history
…2281)

* small fix for message class convai2/interactive.py

This is a fix for issue facebookresearch#2277

* small whitespace change
  • Loading branch information
jsedoc authored and stephenroller committed Dec 19, 2019
1 parent 7fdb495 commit 7b450d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/convai2/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_new_personas():
acts[0] = agents[0].act()
# add the persona on to the first message
if cnt == 0:
acts[0]['text'] = bot_persona + acts[0].get('text', 'hi')
acts[0].force_set('text', bot_persona + acts[0].get('text', 'hi'))
agents[1].observe(acts[0])
acts[1] = agents[1].act()
agents[0].observe(acts[1])
Expand Down

0 comments on commit 7b450d4

Please sign in to comment.