This commit is contained in:
wassname
2019-12-25 08:08:48 +08:00
parent fd6c910bd9
commit 2cc4b96807
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
import os
import itertools
import torch
import torch.nn.functional as F
+1 -1
View File
@@ -172,7 +172,7 @@ def play(generator):
action_suggestion_lines = 1
for i in range(settings.getint('action-alternatives')):
# FIXME it might be better to pass in a longer history
story_manager.story_context() # This should be within the loop as it has a random sampling element
action_prompt = story_manager.story_context() # This should be within the loop as it has a random sampling element
action_prompt[-1] += '> '
logger.debug("action_prompt %s", action_prompt)
suggested_action = ai_player.get_action(action_prompt)